struct SCENE
A scene's row in ScenesWork: its overlay's resource, its area, its scene type and its map.
Declared in scene_tables.h.
Fields
| Name | Description | |
|---|---|---|
Sint16 | resourceId | The overlay syOverlayLoad loads into OverlayArea. |
Sint8 | area | The area: entering a new one clears the FLAG_AREA_TEMP(n) flags and the step counters and moves Retreat's destination; FLAG_AREA_VISITED(area) marks it visited (gmArrive). |
Sint8 | sceneType | An SCENE_TYPE, copied to MainRoutineStateWork.sceneType: SCENE_TYPE_TOWN for towns and their rooms (53 rows: Vale, Bilibin, Kalay, Tolbi and others), SCENE_TYPE_OTHER for the rest. |
Uint16 | mapIndex | The map loaded for it, copied to MainRoutineStateWork.mapId. |
Uint16 | reserved | 0 in every row; not read. |
Description
A scene's row in ScenesWork: its overlay's resource, its area, its scene type
and its map.
struct SCENE
Referenced by gmLoadOverlay(), gmMainRoutineRun() and ScenesWork.
Definition at line 474 of file scene_tables.h.
Fields in detail
resourceId
Sint16 resourceId
The overlay syOverlayLoad loads into OverlayArea.
area
Sint8 area
The area: entering a new one clears the
FLAG_AREA_TEMP(n) flags and the step counters and
moves Retreat's destination; FLAG_AREA_VISITED(area)
marks it visited (gmArrive).
sceneType
Sint8 sceneType
An SCENE_TYPE, copied to
MainRoutineStateWork.sceneType: SCENE_TYPE_TOWN for
towns and their rooms (53 rows: Vale, Bilibin, Kalay,
Tolbi and others), SCENE_TYPE_OTHER for the rest.
mapIndex
Uint16 mapIndex
The map loaded for it, copied to
MainRoutineStateWork.mapId.
reserved
Uint16 reserved
0 in every row; not read.