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
@@ -55,6 +55,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="EntryPoint.cs" />
|
||||
<Compile Include="GameObjects\Components\Doors\SharedDoorComponent.cs" />
|
||||
<Compile Include="GameObjects\ContentNetIDs.cs" />
|
||||
<Compile Include="GameObjects\PhysicalConstants.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,5 +7,6 @@
|
||||
public const uint DESTRUCTIBLE = 1001;
|
||||
public const uint TEMPERATURE = 1002;
|
||||
public const uint HANDS = 1003;
|
||||
public const uint DOOR = 1004;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user