How to fetch instance of specifc room if you have room id ?

Options
sheenamgoyal58
edited October 2014 in Photon Server
Hi,

I have started a multi-player game(Teen Patti). We are using photon server instead of photon cloud.I have started custom code in Load Balancing example in visual studio's and Demo Worker(PUN) example in unity similarly.

Connection with the server is running.
Handling events and operations are also working.

But I am stuck with getting the reference of a specific room if you are having room id got from the client event.As per my understanding the Load balancing example initializing the anonymous instances.Correct me if i am wrong.

Please help.

Thanks:
Sheenam Goyal

Comments

  • Can you please explain what exactly you want to do?

    If a client joins a game / room, all operations of that client are handled by the game class (see: GameClientPeer.HandleGameOperation).

    It is not possible to get the room reference from a *different* room. (e.g.: if client A is in room A, he can not send an event to client B in room B). At least, that is not a "built in" feature... you would need to modify the code that handles the game caching.

    If you could give us a few more details about your use case, we could help to find a solution.