Allow non-humanoid roles (#9604)

This commit is contained in:
Rane
2022-07-10 21:10:03 -04:00
committed by GitHub
parent e57294bd78
commit cfe39123a7
3 changed files with 29 additions and 3 deletions

View File

@@ -51,6 +51,14 @@ namespace Content.Shared.Roles
[DataField("startingGear", customTypeSerializer: typeof(PrototypeIdSerializer<StartingGearPrototype>))]
public string? StartingGear { get; private set; }
/// <summary>
/// Use this to spawn in as a non-humanoid (borg, test subject, etc.)
/// Starting gear will be ignored.
/// If you want to just add special attributes to a humanoid, use AddComponentSpecial instead.
/// </summary>
[DataField("jobEntity", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? JobEntity = null;
[DataField("icon")] public string Icon { get; } = string.Empty;
[DataField("special", serverOnly:true)]