Merge remote-tracking branch 'upstream/master' into 20-10-30-admins
This commit is contained in:
@@ -3,6 +3,11 @@ using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Power
|
||||
{
|
||||
public static class SharedPowerCell
|
||||
{
|
||||
public const int PowerCellVisualsLevels = 4;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum PowerCellVisuals
|
||||
{
|
||||
|
||||
@@ -11,18 +11,17 @@ namespace Content.Shared.GameObjects.Components
|
||||
|
||||
protected abstract bool HasCell { get; }
|
||||
|
||||
protected const int StatusLevels = 6;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
protected sealed class HandheldLightComponentState : ComponentState
|
||||
{
|
||||
public HandheldLightComponentState(float? charge, bool hasCell) : base(ContentNetIDs.HANDHELD_LIGHT)
|
||||
public byte? Charge { get; }
|
||||
|
||||
public HandheldLightComponentState(byte? charge) : base(ContentNetIDs.HANDHELD_LIGHT)
|
||||
{
|
||||
Charge = charge;
|
||||
HasCell = hasCell;
|
||||
}
|
||||
|
||||
public float? Charge { get; }
|
||||
|
||||
public bool HasCell { get; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user