2024-02-13 22:48:39 +01:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations;
|
2022-01-11 19:12:08 -07:00
|
|
|
|
|
|
|
|
namespace Content.Server.RandomAppearance;
|
|
|
|
|
|
2022-02-08 00:42:49 -08:00
|
|
|
[RegisterComponent]
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(RandomAppearanceSystem))]
|
2024-02-13 22:48:39 +01:00
|
|
|
public sealed partial class RandomAppearanceComponent : Component
|
2022-01-11 19:12:08 -07:00
|
|
|
{
|
|
|
|
|
[DataField("spriteStates")]
|
2023-01-19 03:56:45 +01:00
|
|
|
public string[] SpriteStates = { "0", "1", "2", "3", "4" };
|
2022-01-11 19:12:08 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// What appearance enum key should be set to the random sprite state?
|
|
|
|
|
/// </summary>
|
2024-02-13 22:48:39 +01:00
|
|
|
[DataField(required: true, customTypeSerializer: typeof(EnumSerializer))]
|
2023-01-19 03:56:45 +01:00
|
|
|
public Enum? EnumKey;
|
2022-01-11 19:12:08 -07:00
|
|
|
}
|