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>(); } }
public void Command(int gameSessionId, int celestialObjectId, int targetCelestialObjectId, int memberId, int targetCell, int typeId) { _gameServer.Command(gameSessionId, celestialObjectId, targetCelestialObjectId, memberId, targetCell, typeId); }