Property | Type | Description | |
---|---|---|---|
CHUNK_ID | uint | ||
CHUNK_VERSION | ushort |
Property | Type | Description | |
---|---|---|---|
mBottomLeft | Vector2 | ||
mCellSize | float | ||
mGridExtentsHorz | int | ||
mGridExtentsVert | int | ||
mHoldRadius | float | ||
mHoldRadiusInCells | float | ||
mLoadRadius | float | ||
mLoadRadiusInCells | float | ||
mMode | Grid2Mode | ||
mOrigin | Vector2 | ||
mWorldOrigin | Vector3 |
Method | Description | |
---|---|---|
CalculatePageID ( int row, int col ) : |
|
|
CalculateRowCol ( |
|
|
ConvertGridToWorldSpace ( Vector2 grid, Vector3 &world ) : void |
Convert a grid point to world space - note only 2 axes populated
|
|
ConvetWorldToGridSpace ( Vector3 world, Vector2 &grid ) : void |
Convert a world point to grid space (not relative to origin)
|
|
DetermineGridLocation ( Vector2 gridPos, int &row, int &col ) : void |
Convert a grid position into a row and column index
|
|
GetBottomLeftGridSpace ( int row, int col, Vector2 &bl ) : void |
Get the (grid space) corners of a cell.
|
|
GetCornersGridSpace ( int row, int col, Vector2 &fourPoints ) : void |
|
|
GetMidPointGridSpace ( int row, int col, Vector2 &mid ) : void |
Get the (grid space) mid point of a cell
|
|
Grid2DPageStrategyData ( ) : System |
|
|
Load ( |
Load this data from a stream (returns true if successful)
|
|
Save ( |
Save this data to a stream
|
|
SetCellCount ( int horz, int vert ) : void |
Set the number of cells in the grid in each dimension (defaults to max of 65536)
|
Method | Description | |
---|---|---|
UpdateDerivedMetrics ( ) : void |
|
public CalculatePageID ( int row, int col ) : |
||
row | int | |
col | int | |
return |
public CalculateRowCol ( |
||
inPageID | ||
row | int | |
col | int | |
return | void |
public ConvertGridToWorldSpace ( Vector2 grid, Vector3 &world ) : void | ||
grid | Vector2 | |
world | Vector3 | |
return | void |
public ConvetWorldToGridSpace ( Vector3 world, Vector2 &grid ) : void | ||
world | Vector3 | |
grid | Vector2 | |
return | void |
public DetermineGridLocation ( Vector2 gridPos, int &row, int &col ) : void | ||
gridPos | Vector2 | |
row | int | |
col | int | |
return | void |
public GetBottomLeftGridSpace ( int row, int col, Vector2 &bl ) : void | ||
row | int | |
col | int | |
bl | Vector2 | |
return | void |
public GetCornersGridSpace ( int row, int col, Vector2 &fourPoints ) : void | ||
row | int | |
col | int | |
fourPoints | Vector2 | |
return | void |
public GetMidPointGridSpace ( int row, int col, Vector2 &mid ) : void | ||
row | int | |
col | int | |
mid | Vector2 | |
return | void |
public Load ( |
||
stream | ||
return | bool |
public Save ( |
||
stream | ||
return | void |
public SetCellCount ( int horz, int vert ) : void | ||
horz | int | |
vert | int | |
return | void |