Hi, I wanted to ask about extension. Are the room extension and the zone extension two separate files? I was trying to create a RoomVar class similar to World class and wanted to add player into it by getting it from the World class but it returned to null. I checked the world class player list if it is empty or not and it returned true even tho I already added a player into its list before I joined into the room.
Yes, it is similar to the FPSExtension world class. The main difference in mine is that I wanted the World class exclusive to the zone and the RoomVar class exclusive to the room.
Extensions, how they work?
Re: Extensions, how they work?
Yes Extensions are deployed as separate .jar files.
Think of an Extension as a "controller" that can be attached to a Room or Zone. The controller receives commands from the client and process them, sometimes sending updates back.
In other words it can handle the custom logic of your game, and you can have different Extensions for different Rooms, representing different types of games.
For more details check documentation here:
http://docs2x.smartfoxserver.com/Extens ... uick-start
Cheers
Think of an Extension as a "controller" that can be attached to a Room or Zone. The controller receives commands from the client and process them, sometimes sending updates back.
In other words it can handle the custom logic of your game, and you can have different Extensions for different Rooms, representing different types of games.
For more details check documentation here:
http://docs2x.smartfoxserver.com/Extens ... uick-start
Cheers
Who is online
Users browsing this forum: No registered users and 71 guests