* Stop network serializing prototypes Send the damn proto ID instead. * Fix sandbox violation
36 lines
913 B
C#
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;
|
|
}
|