Hi,
I'm developing server side extension in Java for my game. I'm not using the SFSRoom entity, instead I have my own rooms list.
I wish that my room info class would be independent of smartfox server. this is why I don't want to keep in it a reference of SFSUser. instead I would like to keep only user id, and when needed (like sending something to all users in the room), I will ask the server to give me the SFSUser by its id.
How can I get the SFSUser by Id? which Object has this method?
thanks,
Nimrod
Getting SFSUser by user id on server side
Re: Getting SFSUser by user id on server side
Hi,
you just need to get it from the Zone:
cheers
you just need to get it from the Zone:
Code: Select all
User theUser = getParentZone().getUserById(value);
cheers
Who is online
Users browsing this forum: No registered users and 77 guests