I have a handler to deal with USER_LEAVE_ROOM events on the server, which can get the parameter
Room room = (Room) event.getParameter(SFSEventParam.ROOM);
But how do I tell if the room is an MMORoom as I have a mixture of MMORooms and ordinary Rooms. What's the best method for determining the room type?
Leave Room what sort of room?
Re: Leave Room what sort of room?
Code: Select all
if (room instanceof MMORoom) {
// your code
}
Re: Leave Room what sort of room?
Ahh, brilliant. Thank you.
Who is online
Users browsing this forum: No registered users and 108 guests