2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Sprite.Components
|
2020-05-23 02:14:11 +02:00
|
|
|
{
|
2022-02-08 00:42:49 -08:00
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed 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
|
|
|
}
|
|
|
|
|
}
|