API:CSector

From STNE Wiki

(Difference between revisions)
Jump to: navigation, search
(Added Page and Creation options)
(Added Property-Table)
Line 18: Line 18:
  Var sector As New CSector(x-coord,y-coord,map);
  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
 +
|}
[[Category:API]]
[[Category:API]]

Revision as of 21:50, 27 January 2021

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