When the game is over I need to free up room and clean up after itself. Now I call
Code: Select all
for (User user : room.getUserList())
{
if(user.isNpc()) SmartFoxServer.getInstance().getAPIManager().getSFSApi().disconnectUser(user);
else SmartFoxServer.getInstance().getAPIManager().getSFSApi().leaveRoom(user, room);
}Destroy function in Room Extension is override when I free resources.
Everything is correct?
NPC variables and properties will be cleared and dispose?