* move faction prototype to shared * move faction exception and member stuff to shared * fix breaking changes for random stuff * move pettable friend stuff to shared * mostly fix * final fixy * dragonops * final fixy II * use querys and fix warpspeed fish (probably) * fixer * Rrrr! --------- Co-authored-by: deltanedas <@deltanedas:kde.org> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
25 lines
767 B
C#
25 lines
767 B
C#
using Content.Shared.NPC.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.NPC.Components;
|
|
|
|
/// <summary>
|
|
/// Prevents an NPC from attacking ignored entities from enemy factions.
|
|
/// Can be added to if pettable, see PettableFriendComponent.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(NpcFactionSystem))]
|
|
public sealed partial class FactionExceptionComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Collection of entities that this NPC will refuse to attack
|
|
/// </summary>
|
|
[DataField]
|
|
public HashSet<EntityUid> Ignored = new();
|
|
|
|
/// <summary>
|
|
/// Collection of entities that this NPC will attack, regardless of faction.
|
|
/// </summary>
|
|
[DataField]
|
|
public HashSet<EntityUid> Hostiles = new();
|
|
}
|