Skip to Content
The Alchemy Project

Structures: M

The structures and unions of The Broken Seal from M, with their briefs.

  • MAIN_ROUTINE_STATE: The main routine's state: the transition data the main routine reads between engines (the scene and entrance it runs next, engineResult, the return point, the after-battle and defeat destinations and the restart point), and what every engine shares (the party, coins, Djinn, play time and options).
  • MAP_EDIT: A map edit, such as a door opening: its steps and the metatile they are copied to (fdMapGridPlayMapEdit, which blocks until the last).
  • MAP_EDIT_STEP: One step of a map edit, such as a door drawn opening a frame at a time: the rectangle of metatiles to copy from, in metatiles, and the ticks to wait after the copy.
  • MAP_GRID_LAYER_SCROLL: One background layer of the field map: its scroll position, origin, parallax against the view, drift and wrap, and its first map metatile.
  • MAP_GRID_METATILE: One metatile of a map layer: its metatile tiles and flags, its metatile behavior and its shape, an index into the shape table.
  • MAP_GRID_SCROLL_STATE: The field map's state: the followed position, screen shake, tileset animations, blend script, view and its bounds, and three scrolling layers.
  • MAP_GRID_TILE_POS: The top left of a layer's visible area, in metatiles.
  • MAP_HEADER: A layout's header: the camera's bounds, the layers' priorities, tile bases and setup, and the offsets from the header's start of its packed tiles, shapes, tilemap, tileset animation, blend script and treasure spots (packed for syDecompressTaggedLZ, except markers which are read in place).
  • MAP_LAYER: One background layer's setup in a layout's header: its origin, its parallax and drift, and where it wraps.
  • MAP_MUSIC_RULE: A rule choosing a scene's field music (SceneMusicRules, music_rules.s), ended by id -1.
  • MAP_RESOURCES: A row of MapsWork: a layout's resources, each counted from ResourceIdEmptyMap.
  • MAP_SCREEN_STATE: The map screen's state while fdMapScreenShow owns MapGridMetatileBuffer.
  • MENU_CURSOR: Cursor that approaches its target, shared by shops, name entry screen and settings menu.
  • MENU_CURSOR_REF: A menu cursor: its window sprite, or the cursor that approaches its target.
  • MENU_POINT: A point on the screen where a menu shows its cursor.
  • MENU_SPR: A menu sprite: a list link and its OAM attributes, as two words or as fields.
  • MERCURY_LIGHTHOUSE_LIGHTS: Published in the scene's slot for the leader's lights while the column is active.
  • MESSAGE: A message, one of three, which types decoded text into a window a few characters a tick and runs its control codes.
  • MESSAGE_READER: A position in a Huffman-coded message: the previous code, which picks the next symbol's tree, and the message's remaining bits.
  • METATILE_COPY: A block of metatiles copied from one place in the map grid to another.
  • MIND_READ_STATE: The HEAP_SLOT_MIND_READ heap slot (MindReadStateWork), 664 bytes.