Clean up a ton of bugs with suspicion.
This commit is contained in:
@@ -18,58 +18,13 @@ namespace Content.Shared.GameObjects.Components.Suspicion
|
||||
{
|
||||
public readonly string? Role;
|
||||
public readonly bool? Antagonist;
|
||||
public readonly (string name, EntityUid)[] Allies;
|
||||
|
||||
public SuspicionRoleComponentState(string? role, bool? antagonist) : base(ContentNetIDs.SUSPICION_ROLE)
|
||||
public SuspicionRoleComponentState(string? role, bool? antagonist, (string name, EntityUid)[] allies) : base(ContentNetIDs.SUSPICION_ROLE)
|
||||
{
|
||||
Role = role;
|
||||
Antagonist = antagonist;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class SuspicionAlliesMessage : ComponentMessage
|
||||
{
|
||||
public readonly HashSet<EntityUid> Allies;
|
||||
|
||||
public SuspicionAlliesMessage(HashSet<EntityUid> allies)
|
||||
{
|
||||
Directed = true;
|
||||
Allies = allies;
|
||||
}
|
||||
|
||||
public SuspicionAlliesMessage(IEnumerable<EntityUid> allies) : this(allies.ToHashSet()) { }
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class SuspicionAllyAddedMessage : ComponentMessage
|
||||
{
|
||||
public readonly EntityUid Ally;
|
||||
|
||||
public SuspicionAllyAddedMessage(EntityUid ally)
|
||||
{
|
||||
Directed = true;
|
||||
Ally = ally;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class SuspicionAllyRemovedMessage : ComponentMessage
|
||||
{
|
||||
public readonly EntityUid Ally;
|
||||
|
||||
public SuspicionAllyRemovedMessage(EntityUid ally)
|
||||
{
|
||||
Directed = true;
|
||||
Ally = ally;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class SuspicionAlliesClearedMessage : ComponentMessage
|
||||
{
|
||||
public SuspicionAlliesClearedMessage()
|
||||
{
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user