MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Structure_Get_ByIndex

Function Structure_Get_ByIndex

src/pool/structure.c:26–30  ·  view source on GitHub ↗

* Get a Structure from the pool with the indicated index. * * @param index The index of the Structure to get. * @return The Structure. */

Source from the content-addressed store, hash-verified

24 * @return The Structure.
25 */
26Structure *Structure_Get_ByIndex(uint16 index)
27{
28 assert(index < STRUCTURE_INDEX_MAX_HARD);
29 return &g_structureArray[index];
30}
31
32/**
33 * Find the first matching Structure based on the PoolFindStruct filter data.

Callers 15

GameLoop_StructureFunction · 0.85
Structure_DestroyFunction · 0.85
Structure_CancelBuildFunction · 0.85
Object_GetByPackedTileFunction · 0.85
GameLoop_HouseFunction · 0.85
Tools_Index_IsValidFunction · 0.85
Tools_Index_GetTileFunction · 0.85
Tools_Index_GetStructureFunction · 0.85
Tools_Index_GetObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected