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

Function Structure_SetState

src/structure.c:666–672  ·  view source on GitHub ↗

* Set the state for the given structure. * * @param s The structure to set the state of. * @param state The new sate value. */

Source from the content-addressed store, hash-verified

664 * @param state The new sate value.
665 */
666void Structure_SetState(Structure *s, int16 state)
667{
668 if (s == NULL) return;
669 s->state = state;
670
671 Structure_UpdateMap(s);
672}
673
674/**
675 * Get the structure on the given packed tile.

Callers 10

GameLoop_StructureFunction · 0.85
Structure_BuildObjectFunction · 0.85
Unit_EnterStructureFunction · 0.85
Game_PrepareFunction · 0.85
Script_Unit_PickupFunction · 0.85

Calls 1

Structure_UpdateMapFunction · 0.85

Tested by

no test coverage detected