Returns the current client’s shared object
To get an array of shared objects corresponding to the room’s current guests use partyLoadGuestShareds()
.
If a guest’s shared object is empty (it has no properties) it will NOT be included in the GuestShareds array. It will appear in the array as soon as a property is added to it.
This is sometimes useful if you want a client to connect but “lurk” until ready to join.
If you want your shared object to appear on the GuestShared’s array immediately, provide a non-empty object as the data argument.
partyLoadMyShared([data], [callback])
dataObject: data to initialize the shared object with, eg. {x: 0, y: 0}
function(void): function to be called when the shared object is ready.
sharedObject: the shared object