private EMatchInstanceID Create_Game_Instance_From_Quickmatch( EPersistenceID player1, EPersistenceID player2, uint game_count ) { EMatchInstanceID id = Allocate_Match_Instance_ID(); CServerMatchInstance match_instance = new CServerMatchInstance( id, player1, player2, game_count ); m_MatchInstances.Add( id, match_instance ); return id; }
private EMatchInstanceID Create_Game_Instance_From_Lobby( CLobbyState lobby_state ) { EMatchInstanceID id = Allocate_Match_Instance_ID(); CServerMatchInstance match_instance = new CServerMatchInstance( id, lobby_state ); m_MatchInstances.Add( id, match_instance ); return id; }