| 1234567891011121314151617181920212223242526272829303132 |
- using Robust.Shared.Prototypes;
- namespace Content.Shared.NPC.Prototypes;
- /// <summary>
- /// Contains data about this faction's relations with other factions.
- /// </summary>
- [Prototype]
- public sealed partial class NpcFactionPrototype : IPrototype
- {
- [ViewVariables]
- [IdDataField]
- public string ID { get; private set; } = default!;
- [DataField]
- public List<ProtoId<NpcFactionPrototype>> Friendly = new();
- [DataField]
- public List<ProtoId<NpcFactionPrototype>> Hostile = new();
- }
- /// <summary>
- /// Cached data for the faction prototype. Is modified at runtime, whereas the prototype is not.
- /// </summary>
- public record struct FactionData
- {
- [ViewVariables]
- public HashSet<ProtoId<NpcFactionPrototype>> Friendly;
- [ViewVariables]
- public HashSet<ProtoId<NpcFactionPrototype>> Hostile;
- }
|