Skip to Content
The Alchemy Project

struct SCENE

A scene's row in ScenesWork: its overlay's resource, its area, its scene type, its map and its attributes.

Declared in scene_tables.h.

Fields

NameDescription
Sint16resourceIdthe overlay syOverlayLoad loads into OverlayArea
Sint8areaThe area: entering a new one clears the FLAG_AREA_TEMP(n) flags and the step counters and moves Retreat's destination (gmArrive).
Sint8sceneTypean SCENE_TYPE, copied to MainRoutineStateWork.sceneType
Uint16mapIndexthe map loaded for it, copied to MainRoutineStateWork.mapId
Sint16attributesTwo nibbles the field engine reads on arrival (gmFieldGetSceneAttributes).

Description

A scene's row in ScenesWork: its overlay's resource, its area, its scene type, its map and its attributes.

struct SCENE

Referenced by gmLoadOverlay(), gmMainRoutineRun() and ScenesWork.

Definition at line 15 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 (gmArrive).

sceneType

Sint8 sceneType

an SCENE_TYPE, copied to MainRoutineStateWork.sceneType

mapIndex

Uint16 mapIndex

the map loaded for it, copied to MainRoutineStateWork.mapId

attributes

Sint16 attributes

Two nibbles the field engine reads on arrival (gmFieldGetSceneAttributes).