mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
30 lines
793 B
C#
30 lines
793 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Paint;
|
|
|
|
/// Component applied to target entity when painted
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class PaintedComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public Color Color = Color.FromHex("#2cdbd5");
|
|
|
|
/// Used to remove the color when the component is removed
|
|
[DataField, AutoNetworkedField]
|
|
public Color BeforeColor;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool Enabled;
|
|
|
|
// Not using ProtoId because ShaderPrototype is in Robust.Client
|
|
[DataField, AutoNetworkedField]
|
|
public string ShaderName = "Greyscale";
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum PaintVisuals : byte
|
|
{
|
|
Painted,
|
|
}
|