Files
dusklight/include/d/d_bg_plc.h
T
gymnast86 b748eaca1e Remove private specifiers from game code classes (#2375)
* remove private specifiers from game code

* fix formatting

* fix more formatting

* Add some missing public modifiers

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-09-03 09:30:26 -06:00

27 lines
602 B
C++

#ifndef D_BG_D_BG_PLC_H
#define D_BG_D_BG_PLC_H
#include "d/d_bg_pc.h"
struct sBgPlc {
/* 0x0 */ BE(u32) magic; // "SPLC"
/* 0x4 */ BE(u16) m_code_size; // Should normally always be 0x14
/* 0x6 */ BE(u16) m_num; // Number of sBgPc entries to follow
/* 0x8 */ sBgPc m_code[0]; // m_num size array
};
class dBgPlc {
public:
dBgPlc();
~dBgPlc();
void setBase(void*);
sBgPc* getCode(int, sBgPc**) const;
u32 getGrpCode(int) const;
static const int ZELDA_CODE_SIZE = sizeof(sBgPc);
/* 0x00 */ sBgPlc* m_base;
};
#endif /* D_BG_D_BG_PLC_H */