wavelength 1.0.0
Loading...
Searching...
No Matches
rndarena.h File Reference
#include <cstddef>
#include <list>
#include <vector>
#include "math/plane.h"
#include "math/vector3.h"
#include "os/binstream.h"
#include "os/mem.h"
#include "os/prnstream.h"
#include "rnd/rndanimatable.h"
#include "rnd/rndcollideable.h"
#include "rnd/rnddrawable.h"
#include "rnd/rndtransformable.h"
#include "rnd/rndview.h"
Include dependency graph for rndarena.h:

Go to the source code of this file.

Classes

class  RndArena
 Looping track of views, each shown over a window of frames and moved on by a fixed distance every loop. More...
struct  RndArena::Section
 One view of the track and the window it is shown in. More...
class  RndArena::Sort
 One entry of the drawing order. More...

Functions

PrnStream & operator<< (PrnStream &stream, const RndArena::Section &section)
 Write a section's view, frame, loop, window, and flags.
BinStream & operator<< (BinStream &stream, const RndArena::Section &section)
 Write a section's view name, frame, loop, window, and flags.
BinStream & operator>> (BinStream &stream, RndArena::Section &section)
 Read a section the section writer wrote, or an earlier version of it.

Function Documentation

◆ operator<<() [1/2]

PrnStream & operator<< ( PrnStream & stream,
const RndArena::Section & section )

Write a section's view, frame, loop, window, and flags.

Parameters
streamThe stream to write to.
sectionThe section.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0024a360
Ghidra address:
PAL: 0x00252de0

◆ operator<<() [2/2]

BinStream & operator<< ( BinStream & stream,
const RndArena::Section & section )

Write a section's view name, frame, loop, window, and flags.

The binary expands the routine inline in the vector writer.

Parameters
streamThe stream to write to.
sectionThe section.
Returns
The stream.

◆ operator>>()

BinStream & operator>> ( BinStream & stream,
RndArena::Section & section )

Read a section the section writer wrote, or an earlier version of it.

The version is the one RndArena::Load() read last. Version 1 adds the window, version 3 the teleport flag, and version 4 the sort flag.

Parameters
streamThe stream to read from.
sectionReceives the section.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0024a450
Ghidra address:
PAL: 0x00252ed0