how to used CMsgPracticeLobbyCreate create a room for dota2? #1451
yuanhongguo
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This code can be executed, but there is no callback and it cannot create a game room,I would like to know if kit2 supports creating rooms。
CMsgPracticeLobbyCreate lobbyCreateMsg = new CMsgPracticeLobbyCreate
{
lobby_details=new CMsgPracticeLobbySetDetails
{
game_name = "test_cq_gou",
pass_key = lobbyPassword,
server_region = 2,
game_mode = (uint)DOTA_GameMode.DOTA_GAMEMODE_CUSTOM,
custom_game_id= 2966603798,
allow_cheats = false,
fill_with_bots = false,
visibility = DOTALobbyVisibility.DOTALobbyVisibility_Public
}
};
var requestCreate = new ClientGCMsgProtobuf((uint)EDOTAGCMsg.k_EMsgGCPracticeLobbyCreate);
requestCreate.Body.lobby_details = lobbyCreateMsg.lobby_details;
gameCoordinator.Send(requestCreate, DOTA_APP_ID)
Beta Was this translation helpful? Give feedback.
All reactions