wavelength 1.0.0
Loading...
Searching...
No Matches
message.h File Reference
#include <iostream>
#include "os/binstream.h"
#include "os/mem.h"
#include "os/prnstream.h"
Include dependency graph for message.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Message
 Base of every event the game passes between a MsgSource and a MsgSink. More...

Functions

BinStream & operator<< (BinStream &stream, Message *pMsg)
 Write a message as its 16-bit identity and then its payload through saveGuts().
BinStream & operator>> (BinStream &stream, Message *&pMsg)
 Read a message operator<<() wrote, constructing it through the factory list.

Function Documentation

◆ operator<<()

BinStream & operator<< ( BinStream & stream,
Message * pMsg )

Write a message as its 16-bit identity and then its payload through saveGuts().

Type() is dispatched twice with the first result discarded.

Parameters
streamThe stream.
pMsgThe message.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029d030
Ghidra address:
PAL: 0x002a6cf8

◆ operator>>()

BinStream & operator>> ( BinStream & stream,
Message *& pMsg )

Read a message operator<<() wrote, constructing it through the factory list.

An identity that has no factory produces no message and a debug report.

Parameters
streamThe stream.
pMsgReceives the new message, or null.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0029d0b8
Ghidra address:
PAL: 0x002a6d80