Esempio n. 1
0
        private void CommandsSending()
        {
            lock (_commandsLock)
            {
                foreach (var command in Commands)
                {
                    Logger.Debug($"Send command ({command.Type}) for turn '{Environment.Session.Turn}' to server.");
                    _gameServer.Command(Environment.Session.Id, command.Body);
                }

                Commands = new List <Command>();
            }
        }
Esempio n. 2
0
 public void Command(int gameSessionId, int celestialObjectId, int targetCelestialObjectId, int memberId, int targetCell, int typeId)
 {
     _gameServer.Command(gameSessionId, celestialObjectId, targetCelestialObjectId, memberId, targetCell, typeId);
 }