Hypothetically if we had a game with N objects which for sake of argument had an X a Y and a Health value, my question is are there any pros/cons to the following two setups with regard to notifying clients of changes to the objects.
1. Room Attributes
Each objects data is stored in a server side global shared room attribute, with the clients simply listening for changes to each of the attributes
2. Message System
Rather than exposing each objects attributes permanently, the data is stored in the room module script and we just use 'sendMessage' to notify users of changes to the attributes.
I am just in the middle of re-coding a fairly large part of a multiplayer game and wanted to choose the best method upfront. I am guessing that there may be implications in terms of memory used and perhaps bandwidth etc.?
Thanks
Greg