SSBM Decomp
Loading...
Searching...
No Matches
GameModeState Struct Reference

#include <types.h>

Data Structures

struct  GameSceneInfo

Data Fields

u8 id
 Scene graph index searched against #GameRouting::curr_scene_idx during scene graph traversal.
u8 preload
 lbDvdPreloadKind
u16 flags
void(* on_enter )(GameModeState *)
void(* on_exit )(GameModeState *)
struct GameModeState::GameSceneInfo info

Detailed Description

Note
Colloquially known as "Minor Scene"

A single entry in a GameMode's scene graph. Each scene is looked up by its GameModeState::id during scene graph traversal. The scene graph is walked comparing each entry's idx against #GameRouting::curr_scene_idx, and #nextScene advances to the next scene whose idx is greater than the current one. An idx value of 0xFF terminates a collection of GameModeState.

Field Documentation

◆ id

u8 GameModeState::id

Scene graph index searched against #GameRouting::curr_scene_idx during scene graph traversal.

This is the value matched when the scene graph is walked to find the current scene. Not to be confused with GameModeState::info.scene_kind, which is the scene's GameSceneKind. locally defined by game mode

◆ preload

u8 GameModeState::preload

◆ flags

u16 GameModeState::flags

◆ on_enter

void(* GameModeState::on_enter) (GameModeState *)

◆ on_exit

void(* GameModeState::on_exit) (GameModeState *)

◆ info

struct GameModeState::GameSceneInfo GameModeState::info

The documentation for this struct was generated from the following file: