public PlayerActionBundle CopyActionCollection() { lock (queueLock) { PlayerActionBundle bundleCopy = new PlayerActionBundle() { Movement = bundle.Movement.DeepClone() }; bundle = new PlayerActionBundle(); return(bundleCopy); } }
public PlayerActionCollection(ILogService logService, IGameStateService gameStateService) { bundle = new PlayerActionBundle(); this.logService = logService; this.gameStateService = gameStateService; }