void MMatchChannel::AddObject(const MUID& uid, MMatchObject* pObj) { m_ObjUIDCaches.Insert(uid, pObj); // Channel Cache //m_ObjStrCaches.insert(MObjectStrMap::value_type(string(pObj->GetCharInfo()->m_szName), pObj)); m_UserArray.Add(pObj); JoinLobby(uid, pObj); }
SteamAPICall_t CSteamMatchmaking007::CreateLobby( ELobbyType eLobbyType, int ) { SteamAPICall_t result = CSteamBase::RegisterCall(); LobbyCreated_t* retvals = (LobbyCreated_t*)malloc(sizeof(LobbyCreated_t)); CSteamID id = CSteamID( 1337132, 0x40000, k_EUniversePublic, k_EAccountTypeChat ); retvals->m_eResult = k_EResultOK; retvals->m_ulSteamIDLobby = id.ConvertToUint64(); CSteamBase::ReturnCall(retvals, sizeof(LobbyCreated_t), LobbyCreated_t::k_iCallback, result); JoinLobby(id); return result; }