refactor nukeops rule a bit (#19792)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-09-16 12:48:42 +01:00
committed by GitHub
parent 7d9693d976
commit 621e102c93
3 changed files with 81 additions and 61 deletions

View File

@@ -154,11 +154,10 @@ public sealed partial class NukeopsRuleComponent : Component
/// <summary>
/// Players who played as an operative at some point in the round.
/// Stores the session as well as the entity name
/// Stores the mind as well as the entity name
/// </summary>
/// todo: don't store sessions, dingus
[DataField("operativePlayers")]
public Dictionary<string, ICommonSession> OperativePlayers = new();
public Dictionary<string, EntityUid> OperativePlayers = new();
[DataField("faction", customTypeSerializer: typeof(PrototypeIdSerializer<NpcFactionPrototype>), required: true)]
public string Faction = default!;