Beispiel #1
0
 internal GlobalsEntry(IGamestateCommitHandler commitHandler) : base(commitHandler)
 {
     for (int i = 0; i < Enum.GetValues(typeof(ShortFields)).Length; i++)
     {
         shortValues.Add(0);
     }
 }
Beispiel #2
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);
     }
 }
Beispiel #3
0
        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>();
 }
Beispiel #5
0
 internal GamestateEntry(short id, IGamestateCommitHandler commitHandler) : this(commitHandler) {
     _id = id;
 }