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
This commit is contained in:
committed by
GitHub
parent
ec3e7968a6
commit
7f196fc415
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user