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

The script commands of a song's SCRIPT track, each at its tick. More...

#include <scripttrackdata.h>

Public Member Functions

 ScriptTrackData (const char *pszName)
 Construct data with no command.
 ~ScriptTrackData ()
 Release every command.
void AddCommand (int nTick, DataArray *pCommand)
 Add a command after every command at or before its tick.
int NumCommands () const
 Report the number of commands.
TickObj< DataArray * > * GetCommand (int nIndex)
 Report a command and its tick.
const String & GetName () const

Detailed Description

The script commands of a song's SCRIPT track, each at its tick.

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

Constructor & Destructor Documentation

◆ ScriptTrackData()

ScriptTrackData::ScriptTrackData ( const char * pszName)
explicit

Construct data with no command.

Parameters
pszNameThe name of the data.
Ghidra address:
NTSC-U/C: 0x00138c58
Ghidra address:
PAL: 0x0013a4b8

◆ ~ScriptTrackData()

ScriptTrackData::~ScriptTrackData ( )

Release every command.

Ghidra address:
NTSC-U/C: 0x00138c90
Ghidra address:
PAL: 0x0013a4f0

Member Function Documentation

◆ AddCommand()

void ScriptTrackData::AddCommand ( int nTick,
DataArray * pCommand )

Add a command after every command at or before its tick.

Parameters
nTickThe tick.
pCommandThe command, whose reference the data takes over.
Ghidra address:
NTSC-U/C: 0x00138d78
Ghidra address:
PAL: 0x0013a5d8

◆ NumCommands()

int ScriptTrackData::NumCommands ( ) const

Report the number of commands.

Returns
The number of commands.
Ghidra address:
NTSC-U/C: 0x00139030
Ghidra address:
PAL: 0x0013a890

◆ GetCommand()

TickObj< DataArray * > * ScriptTrackData::GetCommand ( int nIndex)

Report a command and its tick.

Parameters
nIndexThe command index.
Returns
The command and its tick.
Ghidra address:
NTSC-U/C: 0x00139048
Ghidra address:
PAL: 0x0013a8a8

◆ GetName()

const String & ScriptTrackData::GetName ( ) const
inline
Returns
The name of the data.

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