internal GlobalsEntry(IGamestateCommitHandler commitHandler) : base(commitHandler) { for (int i = 0; i < Enum.GetValues(typeof(ShortFields)).Length; i++) { shortValues.Add(0); } }
internal TeamEntry(short id, IGamestateCommitHandler commitHandler) : base(id, commitHandler) { for (int i = 0; i < Enum.GetValues(typeof(ShortFields)).Length; i++) { shortValues.Add(0); } for (int i = 0; i < Enum.GetValues(typeof(BoolFields)).Length; i++) { boolValues.Add(false); } }
internal GamestateEntry(IGamestateCommitHandler commitHandler) { shortValues = new List <short>(); boolValues = new List <bool>(); mutex = new Mutex(); this.commitHandler = commitHandler; setBools = new bool[GamestatePacket.maxBools]; firstCommit = true; listeners = new List <EntryListener>(); errorCallbacks = new List <EntryErrorCallback>(); }
internal GamestateTable(IGamestateCommitHandler gamestateTracker, GamestateTracker.Table tableType) { _tableType = tableType; this.gamestateTracker = gamestateTracker; entries = new List <T>(); }
internal GamestateEntry(short id, IGamestateCommitHandler commitHandler) : this(commitHandler) { _id = id; }