void RequestPlayerIntroduction(List <int> userList, bool relay) { // Allow only relayed introduction if (MyFakes.MULTIPLAYER_RELAY_TEST && !relay) { return; } MyEventRequestIntroduction request = new MyEventRequestIntroduction(); request.GameId = m_game.GameId; request.UserList = userList; request.RelayIntroduction = relay; MyMultiplayerPeers.Static.SendServer(ref request); MyMultiplayerGameplay.Log("JOIN 4.b - Requesting player introduction from server, try no: " + m_introductionTryCount); }
void RequestHostIntroduction(uint gameId, bool relay) { // Allow only relayed introduction if (MyFakes.MULTIPLAYER_RELAY_TEST && !relay) { return; } var introRequest = new MyEventRequestIntroduction(); introRequest.GameId = gameId; introRequest.UserList = new List <int>(); introRequest.RelayIntroduction = relay; MyMultiplayerPeers.Static.SendServer(ref introRequest); MyMultiplayerGameplay.Log("JOIN 2.b - Requesting NAT introduction to host, try no: " + m_introductionTryCount); }