public void StartGame(StartGameRequest startGameRequest) { clientSiteManager.StartGame(startGameRequest); }
private void OnStartGame(UserLogicModel user, StartGameRequest data) { // Logger.Log("--game started 1 ", LogLevel.DebugInformation); myDataManager.SiteData.Room_GetRoomByUser(user, room => { if (room == null) { throw new Exception("idk"); return; } // Logger.Log("--game started 2", LogLevel.DebugInformation); mySiteClientManager.CreateGame(new GameCreateRequestModel(room.GameType, room.Players)); }); }
public void StartGame(StartGameRequest startGameRequest) { myGateway.Emit("Area.Site.StartGame", startGameRequest); }