Add barebone nuke (#5242)

Co-authored-by: Alexander Evgrashin <evgrashin.adl@gmail.com>
This commit is contained in:
Alex Evgrashin
2021-11-11 04:29:11 +03:00
committed by GitHub
parent f7968cf865
commit b936ee6ad8
29 changed files with 1170 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
using System;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
namespace Content.Shared.Nuke
{
[Serializable, NetSerializable]
public enum NukeUiKey : byte
{
Key
}
public enum NukeStatus : byte
{
AWAIT_DISK,
AWAIT_CODE,
AWAIT_ARM,
ARMED
}
[Serializable, NetSerializable]
public class NukeUiState : BoundUserInterfaceState
{
public bool DiskInserted;
public NukeStatus Status;
public int RemainingTime;
public bool IsAnchored;
public int EnteredCodeLength;
public int MaxCodeLength;
public bool AllowArm;
}
}