yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::zelda3::music::MusicCommand Struct Reference

Represents an N-SPC command (opcodes 0xE0-0xFF). More...

#include <song_data.h>

Public Member Functions

int GetParamCount () const
 
CommandType GetType () const
 
bool IsSubroutine () const
 
uint16_t GetSubroutineAddress () const
 
uint8_t GetSubroutineRepeatCount () const
 

Public Attributes

uint8_t opcode = 0
 
std::array< uint8_t, 3 > params = {0, 0, 0}
 

Detailed Description

Represents an N-SPC command (opcodes 0xE0-0xFF).

Definition at line 222 of file song_data.h.

Member Function Documentation

◆ GetParamCount()

int yaze::zelda3::music::MusicCommand::GetParamCount ( ) const
inline

◆ GetType()

CommandType yaze::zelda3::music::MusicCommand::GetType ( ) const
inline

Definition at line 233 of file song_data.h.

References opcode.

◆ IsSubroutine()

bool yaze::zelda3::music::MusicCommand::IsSubroutine ( ) const
inline

Definition at line 236 of file song_data.h.

References opcode.

◆ GetSubroutineAddress()

uint16_t yaze::zelda3::music::MusicCommand::GetSubroutineAddress ( ) const
inline

Definition at line 237 of file song_data.h.

References params.

◆ GetSubroutineRepeatCount()

uint8_t yaze::zelda3::music::MusicCommand::GetSubroutineRepeatCount ( ) const
inline

Definition at line 241 of file song_data.h.

References params.

Member Data Documentation

◆ opcode

◆ params


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