|
int | GetGridUpdateId () |
|
int | GetFrameBudget () |
|
void | ResetFrameBudget () |
|
int | ComputeIndex (int x, int z) |
|
int | ComputeIndex (int x, int y, int z) |
|
int | ComputeIndex (vector position) |
|
int | IncreaseGridUpdateId () |
|
void | FlagResourceItem (notnull SCR_ResourceComponent item) |
|
void | UnflagResourceItem (notnull SCR_ResourceComponent item) |
|
void | ProcessFlaggedItems () |
|
void | UpdateResourceStaticItem (notnull SCR_ResourceComponent item) |
|
void | UpdateResourceDynamicItem (notnull SCR_ResourceComponent item) |
|
void | PromoteResourceItemToDynamic (notnull SCR_ResourceComponent item) |
|
void | PromoteResourceItemToStatic (notnull SCR_ResourceComponent item) |
|
void | QueryContainers (vector boundsMins, vector boundsMaxs, EResourceType resourceType) |
|
void | QueryContainers (int mins, int maxs, EResourceType resourceType) |
|
void | QueryContainers (vector boundsMins, vector boundsMaxs, EResourceType resourceType, int gridUpdateId) |
|
void | QueryContainers (int mins, int maxs, EResourceType resourceType, int gridUpdateId) |
|
void | UpdateInteractor (notnull SCR_ResourceInteractor interactor, bool useFrameBudget=false) |
|
array< SCR_ResourceGenerator > | QueryGenerators (float range, vector origin) |
| NOTE: Expensive, used only for specific cases and/or debugging.
|
|
array< SCR_ResourceGenerator > | QueryGenerators (vector mins, vector maxs, vector transform[4]) |
| NOTE: Expensive, used only for specific cases and/or debugging.
|
|
bool | ProcessResourceItem (notnull SCR_ResourceComponent item) |
|
void | UnregisterResourceItem (notnull SCR_ResourceComponent item) |
|
void | SCR_ResourceGrid () |
|
void | ~SCR_ResourceGrid () |
|
◆ SCR_ResourceGrid()
void SCR_ResourceGrid.SCR_ResourceGrid |
( |
| ) |
|
◆ ~SCR_ResourceGrid()
void SCR_ResourceGrid.~SCR_ResourceGrid |
( |
| ) |
|
◆ ComputeIndex() [1/3]
int SCR_ResourceGrid.ComputeIndex |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
◆ ComputeIndex() [2/3]
int SCR_ResourceGrid.ComputeIndex |
( |
int |
x, |
|
|
int |
z |
|
) |
| |
◆ ComputeIndex() [3/3]
int SCR_ResourceGrid.ComputeIndex |
( |
vector |
position | ) |
|
◆ FlagResourceItem()
◆ GetFrameBudget()
int SCR_ResourceGrid.GetFrameBudget |
( |
| ) |
|
◆ GetGridUpdateId()
int SCR_ResourceGrid.GetGridUpdateId |
( |
| ) |
|
◆ IncreaseGridUpdateId()
int SCR_ResourceGrid.IncreaseGridUpdateId |
( |
| ) |
|
◆ ProcessFlaggedItems()
void SCR_ResourceGrid.ProcessFlaggedItems |
( |
| ) |
|
◆ ProcessResourceItem()
◆ PromoteResourceItemToDynamic()
◆ PromoteResourceItemToStatic()
◆ QueryContainers() [1/4]
void SCR_ResourceGrid.QueryContainers |
( |
int |
mins, |
|
|
int |
maxs, |
|
|
EResourceType |
resourceType |
|
) |
| |
Extract grid bounds's components from the previous grid bounds.
◆ QueryContainers() [2/4]
void SCR_ResourceGrid.QueryContainers |
( |
int |
mins, |
|
|
int |
maxs, |
|
|
EResourceType |
resourceType, |
|
|
int |
gridUpdateId |
|
) |
| |
Extract grid bounds's components from the previous grid bounds.
◆ QueryContainers() [3/4]
void SCR_ResourceGrid.QueryContainers |
( |
vector |
boundsMins, |
|
|
vector |
boundsMaxs, |
|
|
EResourceType |
resourceType |
|
) |
| |
Extract grid bounds's components from the previous grid bounds.
◆ QueryContainers() [4/4]
void SCR_ResourceGrid.QueryContainers |
( |
vector |
boundsMins, |
|
|
vector |
boundsMaxs, |
|
|
EResourceType |
resourceType, |
|
|
int |
gridUpdateId |
|
) |
| |
Extract grid bounds's components from the previous grid bounds.
◆ QueryGenerators() [1/2]
NOTE: Expensive, used only for specific cases and/or debugging.
◆ QueryGenerators() [2/2]
array< SCR_ResourceGenerator > SCR_ResourceGrid.QueryGenerators |
( |
vector |
mins, |
|
|
vector |
maxs, |
|
|
vector |
transform[4] |
|
) |
| |
NOTE: Expensive, used only for specific cases and/or debugging.
◆ QueryGridCells()
void SCR_ResourceGrid.QueryGridCells |
( |
int |
mins, |
|
|
int |
maxs, |
|
|
inout notnull array< SCR_ResourceGridCell > |
gridCells |
|
) |
| |
|
protected |
Extract grid bounds's components from the previous grid bounds.
◆ ResetFrameBudget()
void SCR_ResourceGrid.ResetFrameBudget |
( |
| ) |
|
◆ UnflagResourceItem()
◆ UnregisterResourceItem()
Get the previous grid bounds.
Cancel the operation if any of the previous grid bounds is invalid.
Extract grid bounds's items from the previous grid bounds.
Unregister item from every grid cell.
Set the item grid bounds to be invalid.
◆ UpdateInteractor()
void SCR_ResourceGrid.UpdateInteractor |
( |
notnull SCR_ResourceInteractor |
interactor, |
|
|
bool |
useFrameBudget = false |
|
) |
| |
◆ UpdateResourceDynamicItem()
Get the previous grid bounds.
Cancel the operation if any of the previous grid bounds is invalid.
Extract grid bounds's items from the previous grid bounds.
◆ UpdateResourceStaticItem()
Get the previous grid bounds.
Cancel the operation if any of the previous grid bounds is invalid.
Extract grid bounds's items from the previous grid bounds.
◆ CELL_POWER
const int SCR_ResourceGrid.CELL_POWER = 4 |
|
static |
◆ CELL_SIZE_MINUS_1
const int SCR_ResourceGrid.CELL_SIZE_MINUS_1 = (1 << CELL_POWER) - 1 |
|
static |
◆ m_aFlaggedItems
◆ m_aQueriedContainers
◆ m_Cells
◆ m_iFrameBudget
int SCR_ResourceGrid.m_iFrameBudget |
|
protected |
◆ m_iGridPerimeter
int SCR_ResourceGrid.m_iGridPerimeter |
|
protected |
◆ m_iGridPerimeterMinusOne
int SCR_ResourceGrid.m_iGridPerimeterMinusOne |
|
protected |
◆ m_iGridUpdateId
int SCR_ResourceGrid.m_iGridUpdateId = int.MIN |
|
protected |
◆ MAX_FRAME_BUDGET
const int SCR_ResourceGrid.MAX_FRAME_BUDGET = 20 |
|
static |
The documentation for this interface was generated from the following file:
- Game/Sandbox/Resources/SCR_ResourceGrid.c