Files
wwdpublic/Content.Shared/NPC/Events/NpcFactionChangedEvent.cs
Timfa 0df12ec24a Gladiabot (#1548)
Co-authored-by: stellar-novas <stellar_novas@riseup.net>
Co-authored-by: RedFoxIV <38788538+RedFoxIV@users.noreply.github.com>
(cherry picked from commit 01d1ec4d4b04f6d76f239ec0da0970dc705736ef)
2025-01-23 08:03:54 +03:00

26 lines
691 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.NPC.Events;
/// <summary>
/// Raised from client to server to notify a faction was added to an NPC.
/// </summary>
[Serializable, NetSerializable]
public sealed class NpcFactionAddedEvent : EntityEventArgs
{
public string FactionID;
public NpcFactionAddedEvent(string factionId) => FactionID = factionId;
}
/// <summary>
/// Raised from client to server to notify a faction was removed from an NPC.
/// </summary>
[Serializable, NetSerializable]
public sealed class NpcFactionRemovedEvent : EntityEventArgs
{
public string FactionID;
public NpcFactionRemovedEvent(string factionId) => FactionID = factionId;
}