API:CSector
From STNE Wiki
Revision as of 21:50, 27 January 2021 by Little Faeries (Talk | contribs)
Scripting Portal | Contents | API Reference | Index |
---|
With the CSector Class, one can directly access to the actual game data, as it displays a Sector of the universe.
How to create such a Var:
Var sector As New CSector(211,222);
You can define its properties by using coordinates, this will lead the game to use the Standard-Galaxy-Map. Second possibility:
Var sector As New CSector(11111);
Every single Sector has an ID, you can use it. And third possibility: If you want to select a Sector on another map, e.g. an event-map
Var map As New SMap(map-id); Var sector As New CSector(x-coord,y-coord,map);
This Class has no Functions, but a bunch of Properties
Property | Description | Value |
---|---|---|
Coordinates | The coordinates of this Sector | Returns an SPoint |