Files
tbd-station-14/Content.Shared/GameObjects/Components/Doors/SharedDoorComponent.cs
Pieter-Jan Briers 7f196fc415 Doors! (#12)
* Doors WiP

* Kinda seem to work now?

* Finished

* Oh yeah maybe enable that.

* It works except it doesn't

* Undo formatting changes

* BuildChecker too
2017-10-22 23:48:01 +02:00

24 lines
582 B
C#

using System;
using SS14.Shared.GameObjects;
namespace Content.Shared.GameObjects
{
public abstract class SharedDoorComponent : Component
{
public override string Name => "Door";
public override uint? NetID => ContentNetIDs.DOOR;
public override Type StateType => typeof(DoorComponentState);
}
[Serializable]
public class DoorComponentState : ComponentState
{
public readonly bool Opened;
public DoorComponentState(bool opened) : base(ContentNetIDs.DOOR)
{
Opened = opened;
}
}
}