System gamearrays: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
The following is a listing of accessible arrays along with their size in brackets. Where the size is variable, it indicates the maximum allowable index plus 1. All of the built-in arrays are read-only.
The following is a listing of accessible arrays along with their size in brackets. Where the size is variable, it indicates the maximum allowable index plus 1. All of the built-in arrays are read-only.


The ''tilesiz''(''x''/''y'') arrays are indexed by tile numbers and hold the x/y dimensions
The ''tilesiz''(''x''/''y'') arrays are indexed by tile numbers and hold the x/y dimensions of the loaded tiles. If a tile doesn't exist, they will be 0.
of the loaded tiles. If a tile doesn't exist, they will be 0.
*[[sizex|tilesizx]][MAXTILES]
*tilesizx[MAXTILES]
*[[sizey|tilesizy]][MAXTILES]
*tilesizy[MAXTILES]


[[Category:Gamearray manipulation]]
[[Category:Gamearray manipulation]]

Revision as of 18:15, 3 April 2015

These are gamearrays which are defined as direct pointers to internal arrays in the game. While some will change frequently, others will remain static for the whole game. Please note that the values of these array may be different on each peer, so be sure of what you are doing or you could possibly have an effect on sync.

The following is a listing of accessible arrays along with their size in brackets. Where the size is variable, it indicates the maximum allowable index plus 1. All of the built-in arrays are read-only.

The tilesiz(x/y) arrays are indexed by tile numbers and hold the x/y dimensions of the loaded tiles. If a tile doesn't exist, they will be 0.