creating roomvars with private...
Posted: 14 Apr 2011, 10:16
I'm a little confused looking at the docs...
at http://www.smartfoxserver.com/docs/ in section 5.11, it says to just create roomvars by using general Object()s with specific properties like name, val, etc.
at http://docs2x.smartfoxserver.com/api-docs/asdoc/ however, it says to use an array of SFSRoomVariable objects
Which is it? (note, this also seems to apply to user variables...)
Also- the documentation for SFSRoomVariable says "setting the isPrivate property manually has no effect on the server and can disrupt the API functioning. This flag can be set when the Room Variable is created only."
That's very confusing since there is no option to set these flags in the constructor!
So how do I create a SFSRoomVariable of type private and/or persistant?
Thanks!
at http://www.smartfoxserver.com/docs/ in section 5.11, it says to just create roomvars by using general Object()s with specific properties like name, val, etc.
at http://docs2x.smartfoxserver.com/api-docs/asdoc/ however, it says to use an array of SFSRoomVariable objects
Which is it? (note, this also seems to apply to user variables...)
Also- the documentation for SFSRoomVariable says "setting the isPrivate property manually has no effect on the server and can disrupt the API functioning. This flag can be set when the Room Variable is created only."
That's very confusing since there is no option to set these flags in the constructor!
So how do I create a SFSRoomVariable of type private and/or persistant?
Thanks!