resonance 1.0.1
Loading...
Searching...
No Matches
MessageFactory Class Reference

Registrar that adds one message class to the factory list Message::NewMessage() searches. More...

#include <messagefactory.h>

Public Member Functions

 MessageFactory (int nType, MessageFactoryProc pfnCreate)
 Insert a factory into the list, ordered by identity.

Detailed Description

Registrar that adds one message class to the factory list Message::NewMessage() searches.

The translation unit at 0x003d9818 constructs 92 of these as file-scope objects, one for each concrete message, and the unit at 0x003ed2e0 constructs 22 more for the packets. Each passes the identity Message::Type() reports and the class's static New(). The class is not polymorphic, emits no RTTI descriptor, and writes no member, and the title is inferred from the diagnostic Cannot find ID ld in Message Factory List.

Constructor & Destructor Documentation

◆ MessageFactory()

MessageFactory::MessageFactory ( int nType,
MessageFactoryProc pfnCreate )

Insert a factory into the list, ordered by identity.

Unlike Sch::CommandFactory, the constructor has no zero test and inserts every pair.

Parameters
nTypeThe identity the class streams itself under.
pfnCreateThe factory for the class.
Ghidra address:
NTSC-U/C: 0x00555948
Ghidra address:
PAL: 0x00595fd0

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