libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Ship::Events::DispatchContext Struct Reference

Active payload and call-site data for a single in-flight dispatch. More...

#include <Events.h>

Collaboration diagram for Ship::Events::DispatchContext:
[legend]

Public Attributes

EventID ID = -1
 EventID currently being dispatched.
 
IEventEvent = nullptr
 Event payload supplied by the caller.
 
const char * File = nullptr
 Source file that initiated the dispatch, when provided.
 
int Line = 0
 Source line that initiated the dispatch, when provided.
 
const char * Key = nullptr
 Optional deduplication key used for caller diagnostics.
 

Detailed Description

Active payload and call-site data for a single in-flight dispatch.

A new context is pushed for each CallEvent() invocation so nested event dispatch remains well-defined.

Member Data Documentation

◆ Event

IEvent* Ship::Events::DispatchContext::Event = nullptr

Event payload supplied by the caller.

◆ File

const char* Ship::Events::DispatchContext::File = nullptr

Source file that initiated the dispatch, when provided.

◆ ID

EventID Ship::Events::DispatchContext::ID = -1

EventID currently being dispatched.

◆ Key

const char* Ship::Events::DispatchContext::Key = nullptr

Optional deduplication key used for caller diagnostics.

◆ Line

int Ship::Events::DispatchContext::Line = 0

Source line that initiated the dispatch, when provided.


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