Add CInstruction

Former-commit-id: 1f5290572d
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-14 11:29:59 +03:00
parent 2258c581c0
commit 4624d02e51
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,22 @@
#ifndef _CINSTRUCTION
#define _CINSTRUCTION
#include "types.h"
#include "Kyoto/CToken.hpp"
#include "rstl/vector.hpp"
class CFontRenderState;
class CTextRenderBuffer;
class CInstruction {
public:
virtual ~CInstruction() {}
virtual uint GetAssetCount() const;
virtual void GetAssets(rstl::vector<CToken>& assetsOut) const;
virtual void PageInvoke(CFontRenderState& state, CTextRenderBuffer* buf) const;
virtual void Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const = 0;
};
#endif // _CINSTRUCTION

View File

@ -0,0 +1,7 @@
#include "MetroidPrime/CInstruction.hpp"
uint CInstruction::GetAssetCount() const { return 0; }
void CInstruction::GetAssets(rstl::vector< CToken >& assetsOut) const {}
void CInstruction::PageInvoke(CFontRenderState& state, CTextRenderBuffer* buf) const {}