in which format LiteLobby server send message on joining

Options
Paresh
edited October 2011 in Native
I want to use the data/message coming from LiteLobby server after joining to room, which is received by PhotonPeerOperationResult() function (if i am not mistaking)

void Network::PhotonPeerOperationResult(nByte opCode, int returnCode, const ExitGames::Hashtable& returnValues, short invocID)

to use it I need to decode the returnValues, can you please help me in it?

I am using marmalade.

thanks

Comments

  • Kaiserludi
    Options
    Hashtable:toString(), with the boolean parameter for including the types of the keys and values set to true, is your friend here, to get a quick visual overview of the content of a Hashtable for debugging.

    You can get a list of all keys with Hashtable:keys().

    Hashtable::getValue() will return you the value for a specific key.

    With Object::getType() you can find out the type of the value and interpret its data correctly (best done by casting the Object into a ValueObject of that type, when you know the expected type at compile type).