Power cell culling (#8814)
This commit is contained in:
@@ -12,25 +12,15 @@ namespace Content.Shared.PowerCell;
|
||||
public sealed class PowerCellComponent : Component
|
||||
{
|
||||
public const string SolutionName = "powerCell";
|
||||
public const int PowerCellVisualsLevels = 4;
|
||||
|
||||
[DataField("cellSize")]
|
||||
public PowerCellSize CellSize = PowerCellSize.Small;
|
||||
public const int PowerCellVisualsLevels = 2;
|
||||
|
||||
// Not networked to clients
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool IsRigged { get; set; }
|
||||
}
|
||||
|
||||
public enum PowerCellSize
|
||||
{
|
||||
Small = 0,
|
||||
Medium = 1,
|
||||
Large = 2
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum PowerCellVisuals
|
||||
public enum PowerCellVisuals : byte
|
||||
{
|
||||
ChargeLevel
|
||||
}
|
||||
|
||||
@@ -5,13 +5,6 @@ namespace Content.Shared.PowerCell.Components;
|
||||
[RegisterComponent]
|
||||
public sealed class PowerCellSlotComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// What size of cell fits into this component.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("slotSize")]
|
||||
public PowerCellSize SlotSize { get; set; } = PowerCellSize.Small;
|
||||
|
||||
/// <summary>
|
||||
/// The actual item-slot that contains the cell. Allows all the interaction logic to be handled by <see cref="ItemSlotsSystem"/>.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user