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

Tracks registration state for a single EventID. More...

#include <Events.h>

Public Attributes

const char * Name
 Optional human-readable name for this event.
 
ListenerID NextListenerID = 0
 Monotonically increasing listener identifier counter for this event.
 
uint64_t NextListenerSequence = 0
 Registration-order sequence used to preserve stable listener ordering.
 
std::unordered_map< std::string, EventMetadataCallers
 Diagnostic map of event call sites keyed by file:line string.
 
std::unordered_map< ListenerID, std::shared_ptr< ListenerAction > > Listeners
 Active listeners for this event keyed by ListenerID.
 

Detailed Description

Tracks registration state for a single EventID.

Each record stores the event's debug name, listener allocation counters, caller metadata for diagnostics, and the currently registered ListenerActions keyed by ListenerID.

Member Data Documentation

◆ Callers

std::unordered_map<std::string, EventMetadata> Ship::EventRegistration::Callers

Diagnostic map of event call sites keyed by file:line string.

◆ Listeners

std::unordered_map<ListenerID, std::shared_ptr<ListenerAction> > Ship::EventRegistration::Listeners

Active listeners for this event keyed by ListenerID.

◆ Name

const char* Ship::EventRegistration::Name

Optional human-readable name for this event.

◆ NextListenerID

ListenerID Ship::EventRegistration::NextListenerID = 0

Monotonically increasing listener identifier counter for this event.

◆ NextListenerSequence

uint64_t Ship::EventRegistration::NextListenerSequence = 0

Registration-order sequence used to preserve stable listener ordering.


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