27 lines
741 B
C#
27 lines
741 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.PowerCell;
|
|
|
|
/// <summary>
|
|
/// This component enables power-cell related interactions (e.g., entity white-lists, cell sizes, examine, rigging).
|
|
/// The actual power functionality is provided by the server-side BatteryComponent.
|
|
/// </summary>
|
|
[NetworkedComponent]
|
|
[RegisterComponent]
|
|
public sealed class PowerCellComponent : Component
|
|
{
|
|
public const string SolutionName = "powerCell";
|
|
public const int PowerCellVisualsLevels = 2;
|
|
|
|
// Not networked to clients
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool IsRigged { get; set; }
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum PowerCellVisuals : byte
|
|
{
|
|
ChargeLevel
|
|
}
|