Files
RobustToolbox/Robust.Shared/GameObjects/Components/Light/PointLightComponentState.cs
T
metalgearslothandGitHub d5855fa805 Sync PointLight data between client and server. (#1995)
* Sync PointLight data

* ECS GetComponentState

* Nothing to see here
2021-09-06 17:31:06 +10:00

25 lines
622 B
C#

using System;
using Robust.Shared.Maths;
using Robust.Shared.Serialization;
namespace Robust.Shared.GameObjects
{
[Serializable, NetSerializable]
public sealed class PointLightComponentState : ComponentState
{
public readonly Color Color;
public readonly bool Enabled;
public readonly float Radius;
public readonly Vector2 Offset;
public PointLightComponentState(bool enabled, Color color, float radius, Vector2 offset)
{
Enabled = enabled;
Color = color;
Radius = radius;
Offset = offset;
}
}
}