Shuttle docking (#5169)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Doors
|
||||
{
|
||||
[NetworkedComponent()]
|
||||
[NetworkedComponent]
|
||||
public abstract class SharedDoorComponent : Component
|
||||
{
|
||||
public override string Name => "Door";
|
||||
@@ -177,4 +177,14 @@ namespace Content.Shared.Doors
|
||||
CurTime = curTime;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class DoorOpenAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public sealed class DoorCloseAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
18
Content.Shared/Shuttles/SharedDockingComponent.cs
Normal file
18
Content.Shared/Shuttles/SharedDockingComponent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Shuttles
|
||||
{
|
||||
public abstract class SharedDockingComponent : Component
|
||||
{
|
||||
// Yes I left this in for now because there's no overhead and we'll need a client one later anyway
|
||||
// and I was too lazy to delete it.
|
||||
public override string Name => "Docking";
|
||||
|
||||
[ViewVariables]
|
||||
public bool Enabled = false;
|
||||
|
||||
public abstract bool Docked { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user