2021-02-11 01:13:03 -08:00
|
|
|
using System.Collections.Generic;
|
2020-05-23 02:14:11 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Maths;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2020-05-23 02:14:11 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Sprite.Components
|
2020-05-23 02:14:11 +02:00
|
|
|
{
|
2022-01-31 01:31:09 +11:00
|
|
|
[RegisterComponent, ComponentProtoName("RandomSpriteColor")]
|
|
|
|
|
public class RandomSpriteColorComponent : Component
|
2020-05-23 02:14:11 +02:00
|
|
|
{
|
2022-01-31 01:31:09 +11:00
|
|
|
// This should handle random states + colors for layers.
|
|
|
|
|
// Saame with RandomSpriteState
|
|
|
|
|
[DataField("selected")] public string? SelectedColor;
|
|
|
|
|
[DataField("state")] public string BaseState = "error";
|
2020-05-23 02:14:11 +02:00
|
|
|
|
2022-01-31 01:31:09 +11:00
|
|
|
[DataField("colors")] public readonly Dictionary<string, Color> Colors = new();
|
2020-05-23 02:14:11 +02:00
|
|
|
}
|
|
|
|
|
}
|