wavelength 1.0.0
Loading...
Searching...
No Matches
DuelPatternTable Class Reference

The duel patterns of a song, each with the tick it applies from, embedded in the song at +0x20. More...

#include <duelpatterntable.h>

Classes

struct  Entry
 One pattern and the tick it applies from. More...

Public Member Functions

std::vector< Entry >::const_iterator Find (int nTick) const
 Find the pattern that applies at a tick.
const std::vector< Entry > & GetEntries () const
std::vector< Entry > & GetEntries ()

Detailed Description

The duel patterns of a song, each with the tick it applies from, embedded in the song at +0x20.

The class is not polymorphic and has no RTTI. The name is inferred.

Member Function Documentation

◆ Find()

std::vector< Entry >::const_iterator DuelPatternTable::Find ( int nTick) const
inline

Find the pattern that applies at a tick.

Inline. The emitted copy is at the address below.

Parameters
nTickThe tick.
Returns
The last entry that starts at or before the tick, or the end of mEntries when the tick precedes every entry. DuelTrackPitcher reads the end as an entry.
Ghidra address:
NTSC-U/C: 0x003357b0
Ghidra address:
PAL: 0x003a2d60

◆ GetEntries() [1/2]

const std::vector< Entry > & DuelPatternTable::GetEntries ( ) const
inline
Returns
The patterns in the order of their ticks.

◆ GetEntries() [2/2]

std::vector< Entry > & DuelPatternTable::GetEntries ( )
inline
Returns
The patterns in the order of their ticks.

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