* PoweredLight uses PointLights for appearance Previously this just set PointLightComponent data via the visualizer which lead to desyncs in the data between client and server. If the server pointlight was dirtied at any point then the pointlight data set via appearance visualizers was bulldozed. * Address review
28 lines
441 B
C#
28 lines
441 B
C#
using System;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Light
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public enum PoweredLightVisuals : byte
|
|
{
|
|
BulbState,
|
|
Blinking
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum PoweredLightState : byte
|
|
{
|
|
Empty,
|
|
On,
|
|
Off,
|
|
Broken,
|
|
Burned
|
|
}
|
|
|
|
public enum PoweredLightLayers : byte
|
|
{
|
|
Base
|
|
}
|
|
}
|