I am trying to update the list of rooms that are open for seating in the lobby. I'd like to remove any rooms where the games have been started.
I notify the server that that the room property has changed with:
std::map<std::string,std::string> properties;
properties["closed"]="true";
std::vector<std::string> removeArray;
AppWarp::Client::getInstance()->updateRoomProperties(roomId, properties, removeArray);
But how do I get a user in the lobby to detect this change?
I've tried adding
void HelloWorld::onUserChangeRoomProperty ( AppWarp :: room event , std :: string username , std :: map < std :: string , std :: string > properties , std :: map < std :: string , std :: string > lockTable )
{
CCLog("Property Changed");
}
and
void HelloWorld::onUpdatePropertyDone ( AppWarp :: liveroom event)
{
CCLog("Property Changed");
}
But neither have fired. I know the property is being set because the rooms disappear when I manually refresh it.