private HoloNetRoom ConvertToHolonetRoom(RoomInfo photonRoomInfo) { var result = new HoloNetRoom(); result.id = photonRoomInfo.Name; result.name = (string)photonRoomInfo.CustomProperties["N"] ?? ""; result.roomType = (string)photonRoomInfo.CustomProperties["C0"] ?? ""; result.isVisible = photonRoomInfo.IsVisible; result.isOpen = photonRoomInfo.IsOpen; result.playersCount = photonRoomInfo.PlayerCount; result.maxPlayers = photonRoomInfo.MaxPlayers; result.password = (string)photonRoomInfo.CustomProperties["P"] ?? ""; return(result); }
public static AsyncOp JoinRoom(HoloNetRoom room, Action <AsyncOp> callback = null) { return(HoloNetAppModule.instance.provider.JoinRoom(room.id, callback)); }
public void ClearCurrentRoom() { currentRoom = null; }
public void SetCurrentRoom(HoloNetRoom newRoom) { currentRoom = newRoom; }