ECS AME (#16779)
This commit is contained in:
71
Content.Shared/Ame/SharedAmeControllerComponent.cs
Normal file
71
Content.Shared/Ame/SharedAmeControllerComponent.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ame;
|
||||
|
||||
[Virtual]
|
||||
public class SharedAmeControllerComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class AmeControllerBoundUserInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public readonly bool HasPower;
|
||||
public readonly bool IsMaster;
|
||||
public readonly bool Injecting;
|
||||
public readonly bool HasFuelJar;
|
||||
public readonly int FuelAmount;
|
||||
public readonly int InjectionAmount;
|
||||
public readonly int CoreCount;
|
||||
|
||||
public AmeControllerBoundUserInterfaceState(bool hasPower, bool isMaster, bool injecting, bool hasFuelJar, int fuelAmount, int injectionAmount, int coreCount)
|
||||
{
|
||||
HasPower = hasPower;
|
||||
IsMaster = isMaster;
|
||||
Injecting = injecting;
|
||||
HasFuelJar = hasFuelJar;
|
||||
FuelAmount = fuelAmount;
|
||||
InjectionAmount = injectionAmount;
|
||||
CoreCount = coreCount;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class UiButtonPressedMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public readonly UiButton Button;
|
||||
|
||||
public UiButtonPressedMessage(UiButton button)
|
||||
{
|
||||
Button = button;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum AmeControllerUiKey
|
||||
{
|
||||
Key
|
||||
}
|
||||
|
||||
public enum UiButton
|
||||
{
|
||||
Eject,
|
||||
ToggleInjection,
|
||||
IncreaseFuel,
|
||||
DecreaseFuel,
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum AmeControllerVisuals
|
||||
{
|
||||
DisplayState,
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum AmeControllerState
|
||||
{
|
||||
On,
|
||||
Critical,
|
||||
Fuck,
|
||||
Off,
|
||||
}
|
||||
23
Content.Shared/Ame/SharedAmeShieldComponent.cs
Normal file
23
Content.Shared/Ame/SharedAmeShieldComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ame;
|
||||
|
||||
[Virtual]
|
||||
public class SharedAmeShieldComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum AmeShieldVisuals
|
||||
{
|
||||
Core,
|
||||
CoreState
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum AmeCoreState
|
||||
{
|
||||
Off,
|
||||
Weak,
|
||||
Strong
|
||||
}
|
||||
Reference in New Issue
Block a user