IZoneManager class not found in com.smartfoxserver.v2.entities.managers package

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

aakash447
Posts: 14
Joined: 07 Jan 2020, 06:21

IZoneManager class not found in com.smartfoxserver.v2.entities.managers package

Postby aakash447 » 17 Jan 2020, 10:21

The statement

Code: Select all

  Zone zoneByName  =  SmartFoxServer.getInstance().getZoneManager().getZoneByName("firstZone"); 

is working but when i traced it i saw that
method signature of getZoneManager()

Code: Select all

 public com.smartfoxserver.v2.entities.managers.IZoneManager getZoneManager()   

but entities.managers has no class IZoneManager

and even Zone Interface and SFSZone class has no method getZoneByName() so how this statement is working


Can someone explain me
This is sfs2x java server side docs
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: IZoneManager class not found in com.smartfoxserver.v2.entities.managers package

Postby Lapo » 17 Jan 2020, 15:12

Hi,
but entities.managers has no class IZoneManager

An interface with that name exists under that package.

and even Zone Interface and SFSZone class has no method getZoneByName() so how this statement is working

As per your own example getZoneByName() is a method of the IZoneManager interface.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
aakash447
Posts: 14
Joined: 07 Jan 2020, 06:21

Re: IZoneManager class not found in com.smartfoxserver.v2.entities.managers package

Postby aakash447 » 18 Jan 2020, 10:26

No IZoneManager is not present here neither as Interface nor class
Attachments
sfs.PNG
(60.75 KiB) Not downloaded yet
aakash447
Posts: 14
Joined: 07 Jan 2020, 06:21

Re: IZoneManager class not found in com.smartfoxserver.v2.entities.managers package

Postby aakash447 » 18 Jan 2020, 10:33

I have seen IZoneManager class in jar file after extracting it. So why this class is not showing in documentation
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: IZoneManager class not found in com.smartfoxserver.v2.entities.managers package

Postby Lapo » 18 Jan 2020, 17:07

aakash447 wrote:I have seen IZoneManager class in jar file after extracting it. So why this class is not showing in documentation

Not al classes are documented. Otherwise the doc would be 5x larger and it would be overwhelming to sift through dozens of internal classes that the Extension developer doesn't need to know about.

For example the ZoneManager is unlikely a class you will ever need during development, as your Extension can already access the current Zone via the getParentZone() method.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 23 guests