Elin Decompiled Documentation EA 23.344.1 Nightly
Loading...
Searching...
No Matches
TileManager.Grid Class Reference

Public Member Functions

void SetUsedSequence (int linear, int span)
 
void AddRows (int n)
 

Public Attributes

bool[] used
 
int cols
 
int rows
 

Detailed Description

Definition at line 20 of file TileManager.cs.

Member Function Documentation

◆ AddRows()

void TileManager.Grid.AddRows ( int  n)
inline

Definition at line 40 of file TileManager.cs.

41 {
42 Array.Resize(ref used, cols * (rows + n));
43 rows += n;
44 }

References TileManager.Grid.cols, TileManager.Grid.rows, and TileManager.Grid.used.

◆ SetUsedSequence()

void TileManager.Grid.SetUsedSequence ( int  linear,
int  span 
)
inline

Definition at line 28 of file TileManager.cs.

29 {
30 for (int i = 0; i < span; i++)
31 {
32 int num = linear + i;
33 if (num >= 0 && num < used.Length)
34 {
35 used[num] = true;
36 }
37 }
38 }

References TileManager.Grid.used.

Referenced by TileManager.AllocateRect(), and TileManager.SetBuiltinSequence().

Member Data Documentation

◆ cols

◆ rows

◆ used

bool [] TileManager.Grid.used

The documentation for this class was generated from the following file: