型 変数名 内容 - - -
型 内容 RoomData[] ルーム情報の一覧を配列情報で取得します。
// ルーム一覧の情報を表示します。
foreach (RoomData info in MonobitEngine.MonobitNetwork.GetRoomData())
{
Debug.Log(" Room Name : " + info.name);
Debug.Log(" Players in Room : " + info.playerCount);
Debug.Log(" Limit of Players : " + info.maxPlayers);
Debug.Log(" Room is Open ? : " + ((info.open) ? "true" : "false"));
Debug.Log(" Room is Visible ? : " + ((info.visible) ? "true" : "false"));
}
OnReceiveRoomListUpdate MUNサーバより、ルームの一覧の更新を受信した際に呼び出されます。