opSetPropertiesOfRoom is private

Hi, I have a few quick questions about updating room settings:

1. I tried to call opSetPropertiesOfRoom from Photon Client (client.h), but I noticed that it's private, how do I make that call?
2. Then I checked that opSetPropertiesOfRoom from Photon Peer (peer.h), the method is public. But I have no idea how to create a Photon Peer. The constructor of Photon Peer is

Peer(Photon::PhotonListener& listener, nByte connectionProtocol=Photon::ConnectionProtocol::DEFAULT);

I dont have a reference to Photon::PhotonListener. I only have a LoadBalancingListener class, and a Photon Client class.

3. Is opSetPropertiesOfRoom additive? In that I only need to pass in the key-value pairs that changed, and those I didn't change remain in tact?

Thanks

Comments

  • Hi,
    Room properties should be set via reference to currently joined room: LoadBalancing::Client.getCurrentlyJoinedRoom().addCustomProperty(const Common::Hashtable &customProperties)
    This call adds new property or updates existing.
  • edited January 11
    Hi vadim:

    This works great. Thank you!
Sign In or Register to comment.