Hi,
I tried to find information about game room attributes that can be used with getGameRoomAttribute and changeGameRoomAttribute methods. Unfortunatelty I didn't succeed. Can anyone give me some hint where to search?
Hi,
I tried to find information about game room attributes that can be used with getGameRoomAttribute and changeGameRoomAttribute methods. Unfortunatelty I didn't succeed. Can anyone give me some hint where to search?
hi czubaka,
for my understanding (yeah, you are correct, all pdfs within FN and installation folder do not describe that feature i think) attribs are simply runtime-defined set of shared data between all connected users, SNAP api allows to listen for an event when lobby/game room attribute changes - so all connected clients are notified,
I haven't used SNAP yet (only reviewed docs many times) but I had experience in socket server games from other platform (electroserver for flash/action script), in some implementation we could for example:
- prefoconfigure game room with server-side config file to have predefined list of attribs
- create attribs at game room at runtime,
- whenever user joins game room client application can list game room for all attribs
- whenever client set/create/change/delete attrib in game room all connected clients (including actor client) are notified about success event (data changed/failure),
I think that is how SNAP mobile api can be used - but that just guessing,
it seems like we should request more docs from Nokia (more featured samples - at least "test case samples" in docs which provide sample snippets for given feature,
regards,
Peter