APISector
This class implements ISector
Properties
Identical to ISector
Constructors
This class has two constructors:
APISector(IVirtualWorld world, string name, int towers = 0);
This implies that the sector belongs to an existing IVirtualWorld. If you supply an amount of towers, they will be created automatically, starting from 1 until the given amount. The sector will be automatically added to the VirtualWorld if not already present Example:
IVirtualWorld Lyoko = new APIVirtualWorld("lyoko");
ISector iceSector = new APISector(Lyoko,"ice",10);
You can also use a string for the VirtualWorld:
APISector(string virtualworldname, string sectorname, int towers = 0);
This constructor will do the same thing as the one above, except it will create a new IVirtualWorld
Last updated
Was this helpful?