Beispiel #1
0
        public PlayerActionBundle CopyActionCollection()
        {
            lock (queueLock) {
                PlayerActionBundle bundleCopy = new PlayerActionBundle()
                {
                    Movement = bundle.Movement.DeepClone()
                };

                bundle = new PlayerActionBundle();

                return(bundleCopy);
            }
        }
Beispiel #2
0
 public PlayerActionCollection(ILogService logService, IGameStateService gameStateService)
 {
     bundle                = new PlayerActionBundle();
     this.logService       = logService;
     this.gameStateService = gameStateService;
 }