Stop network serializing prototypes (#38602)
* Stop network serializing prototypes Send the damn proto ID instead. * Fix sandbox violation
This commit is contained in:
committed by
GitHub
parent
bb7e7c3e5f
commit
73df3b1593
@@ -5,27 +5,31 @@ namespace Content.Shared.Mind;
|
||||
/// <summary>
|
||||
/// The core properties of Role Types
|
||||
/// </summary>
|
||||
[Prototype, Serializable]
|
||||
[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 = "role-type-crew-aligned-name";
|
||||
public LocId Name = FallbackName;
|
||||
|
||||
/// <summary>
|
||||
/// The role's displayed color.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public Color Color = Color.FromHex("#eeeeee");
|
||||
public Color Color = FallbackColor;
|
||||
|
||||
/// <summary>
|
||||
/// A symbol used to represent the role type.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public string Symbol = string.Empty;
|
||||
public string Symbol = FallbackSymbol;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user