wavelength 1.0.0
Loading...
Searching...
No Matches
rndmanager.h File Reference
#include <list>
#include <map>
#include <memory>
#include <vector>
#include "os/binstream.h"
#include "os/file.h"
#include "os/filepath.h"
#include "os/strless.h"
#include "rnd/rndloader.h"
#include "rnd/rndobject.h"
Include dependency graph for rndmanager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RndManager
 Registry of every live renderer object, of every class a .rnd file may instantiate, and of the texture files being read. More...
class  RndManager::ResourceLoader
 Read of one resource file into memory, shared by every reference to the file. More...

Functions

template<typename T>
BinStream & operator<< (BinStream &stream, const std::list< T * > &list)
 Write a list of objects as its size followed by each object's name.
template<typename T>
BinStream & operator>> (BinStream &stream, std::list< T * > &list)
 Read a list of objects the list writer wrote, resolving each name in TheManager.
template<typename T>
BinStream & operator<< (BinStream &stream, const std::vector< T * > &objects)
 Write a vector of objects as its size followed by each object's name.
template<typename T>
BinStream & operator>> (BinStream &stream, std::vector< T * > &objects)
 Read a vector of objects the vector writer wrote, resolving each name in TheManager.

Variables

RndManager TheManager
 The renderer's registry.

Function Documentation

◆ operator<<() [1/2]

template<typename T>
BinStream & operator<< ( BinStream & stream,
const std::list< T * > & list )

Write a list of objects as its size followed by each object's name.

A null entry writes an empty name. Each element type has its own copy, one address each.

Parameters
streamThe stream to write to.
listThe list.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00380540
Ghidra address:
PAL: 0x003eec58
Ghidra address:
NTSC-U/C: 0x0037de10
Ghidra address:
PAL: 0x003ec540
Ghidra address:
NTSC-U/C: 0x0037f5c0
Ghidra address:
PAL: 0x003edcd8
Ghidra address:
NTSC-U/C: 0x00380c28
Ghidra address:
PAL: 0x003ef340
Ghidra address:
NTSC-U/C: 0x00391a68
Ghidra address:
PAL: 0x00400170

◆ operator>>() [1/2]

template<typename T>
BinStream & operator>> ( BinStream & stream,
std::list< T * > & list )

Read a list of objects the list writer wrote, resolving each name in TheManager.

An empty name, an unknown name, or an object of another class reads as null. Each element type has its own copy, one address each.

Parameters
streamThe stream to read from.
listReceives the objects.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00380780
Ghidra address:
PAL: 0x003eee98
Ghidra address:
NTSC-U/C: 0x0037e250
Ghidra address:
PAL: 0x003ec980
Ghidra address:
NTSC-U/C: 0x0037f800
Ghidra address:
PAL: 0x003edf18
Ghidra address:
NTSC-U/C: 0x00380e68
Ghidra address:
PAL: 0x003ef580
Ghidra address:
NTSC-U/C: 0x00387908
Ghidra address:
PAL: 0x003f6010
Ghidra address:
NTSC-U/C: 0x00391ca8
Ghidra address:
PAL: 0x004003b0

◆ operator<<() [2/2]

template<typename T>
BinStream & operator<< ( BinStream & stream,
const std::vector< T * > & objects )

Write a vector of objects as its size followed by each object's name.

A null entry writes an empty name. Each element type has its own instance, and the addresses are those of the RndMat and the RndFont instances.

Parameters
streamThe stream to write to.
objectsThe vector.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x003951a0
Ghidra address:
PAL: 0x00403890
Ghidra address:
NTSC-U/C: 0x00395250
Ghidra address:
PAL: 0x00403940

◆ operator>>() [2/2]

template<typename T>
BinStream & operator>> ( BinStream & stream,
std::vector< T * > & objects )

Read a vector of objects the vector writer wrote, resolving each name in TheManager.

An empty name, an unknown name, or an object of another class reads as null. Each element type has its own instance, and the addresses are those of the RndMat and the RndFont instances.

Parameters
streamThe stream to read from.
objectsReceives the objects.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00395300
Ghidra address:
PAL: 0x004039f0
Ghidra address:
NTSC-U/C: 0x00395718
Ghidra address:
PAL: 0x00403e08

Variable Documentation

◆ TheManager

RndManager TheManager
extern

The renderer's registry.

Ghidra address:
NTSC-U/C: 0x0043c798