ECS handheld lights (#5864)

This commit is contained in:
metalgearsloth
2021-12-27 18:15:16 +11:00
committed by GitHub
parent b3b171da7f
commit 0705f16898
6 changed files with 325 additions and 321 deletions

View File

@@ -5,17 +5,16 @@ using Robust.Shared.Serialization;
namespace Content.Shared.Light.Component
{
[NetworkedComponent()]
[NetworkedComponent]
[ComponentProtoName("HandheldLight")]
public abstract class SharedHandheldLightComponent : Robust.Shared.GameObjects.Component
{
public sealed override string Name => "HandheldLight";
protected abstract bool HasCell { get; }
protected const int StatusLevels = 6;
public const int StatusLevels = 6;
[Serializable, NetSerializable]
protected sealed class HandheldLightComponentState : ComponentState
public sealed class HandheldLightComponentState : ComponentState
{
public byte? Charge { get; }