Files
tbd-station-14/Content.Shared/Mind/RoleTypePrototype.cs
Pieter-Jan Briers 73df3b1593 Stop network serializing prototypes (#38602)
* Stop network serializing prototypes

Send the damn proto ID instead.

* Fix sandbox violation
2025-06-26 19:27:23 -04:00

36 lines
913 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.Mind;
/// <summary>
/// The core properties of Role Types
/// </summary>
[Prototype]
public sealed partial class RoleTypePrototype : IPrototype
{
[IdDataField]
public string ID { get; private set; } = default!;
public static readonly LocId FallbackName = "role-type-crew-aligned-name";
public const string FallbackSymbol = "";
public static readonly Color FallbackColor = Color.FromHex("#eeeeee");
/// <summary>
/// The role's name as displayed on the UI.
/// </summary>
[DataField]
public LocId Name = FallbackName;
/// <summary>
/// The role's displayed color.
/// </summary>
[DataField]
public Color Color = FallbackColor;
/// <summary>
/// A symbol used to represent the role type.
/// </summary>
[DataField]
public string Symbol = FallbackSymbol;
}