Add ability to add additional friendly and hostile factions in prototypes (#29636)

* Make friendly and hostile factions in NpcFactionMemberComponent datafiels

* :trollface:

* :trollface:
This commit is contained in:
lzk
2024-07-02 15:32:21 +02:00
committed by GitHub
parent 5c8962823e
commit 2a6b7dbaf9
2 changed files with 21 additions and 0 deletions

View File

@@ -25,4 +25,16 @@ public sealed partial class NpcFactionMemberComponent : Component
/// </summary>
[ViewVariables]
public readonly HashSet<ProtoId<NpcFactionPrototype>> HostileFactions = new();
/// <summary>
/// Used to add friendly factions in prototypes.
/// </summary>
[DataField, ViewVariables]
public HashSet<ProtoId<NpcFactionPrototype>>? AddFriendlyFactions;
/// <summary>
/// Used to add hostile factions in prototypes.
/// </summary>
[DataField, ViewVariables]
public HashSet<ProtoId<NpcFactionPrototype>>? AddHostileFactions;
}