Hi,
Just found out this. The code in SmartFoxClient.setUserVariable obviously ignores any property that is of complex object type. It basically only accepts number, string. I am wondering what is the reason behind this.
I am currently hoping to use user variables to send custom user information such as clothes, user levels across the room. But because of this limitation, I cannot directly use it.(work around is to serialize/deserialize the object as xml string, but i am wondering why can't api take care of this)
I am more puzzled since it seems I can send complex object types from server to the client using the _server.sendResponse. So it doesn't seem to be a problem technical difficulty..
setUserVariable cannot send complex Object type
-
mjforever111
- Posts: 6
- Joined: 01 Jan 2008, 15:46