Setting custom Room Properties and joining random rooms usin
Options
as the title suggests i want to create custom rooms with properties as : Server Name : String , Level/Map : int , maxPlayers : int i looked at http://doc-api.exitgames.com/en/pun/current/pun/doc/class_room.html#a3d3329a383d9cc0e4dcf10527ed42845
but i dont understand how to use functions like playerCount and maxPlayers any help would be appreciated .
and btw i looked at the pdf that came with photon and copied the hashtable example but it failed to compile says cannot convert system hashtable to exitgames.photon........hashtable
but i dont understand how to use functions like playerCount and maxPlayers any help would be appreciated .
and btw i looked at the pdf that came with photon and copied the hashtable example but it failed to compile says cannot convert system hashtable to exitgames.photon........hashtable
0
Comments
-
This should help:
http://doc.exitgames.com/en/pun/current ... -and-state
and this:
http://doc.exitgames.com/en/realtime/cu ... -and-lobby
And the Hashtable issue is resolved by defining which Hashtable class you refer to in your code (Photon has it's own Hashtable, which aims to replace System.Hashtable on platforms that don't have it). At the top of your code, add:
using Hashtable = ExitGames.Client.Photon.Hashtable;0