Enum ModuleTags

Enum Documentation

enum class portal::ModuleTags : uint8_t

Bitflag enumeration of module lifecycle phases.

ModuleTags defines the available lifecycle hooks that modules can participate in. Each tag corresponds to a specific method in BaseModule (begin_frame, update, etc.). Modules declare which lifecycle phases they need by specifying one or more of these tags in their TaggedModule template parameter.

Lifecycle execution order within each frame:

  1. FrameLifecycle - begin_frame() called in dependency order

  2. Update - update() called in dependency order

  3. GuiUpdate - gui_update() called in dependency order

  4. PostUpdate - post_update() called in dependency order (typically rendering)

  5. FrameLifecycle - end_frame() called in reverse dependency order

  6. Event - on_event() called when events occur (outside normal frame flow)

Values:

enumerator None
enumerator FrameLifecycle
enumerator Update
enumerator GuiUpdate
enumerator PostUpdate
enumerator Event