diff --git a/include/MetroidPrime/CInstruction.hpp b/include/MetroidPrime/CInstruction.hpp new file mode 100644 index 00000000..87b05a62 --- /dev/null +++ b/include/MetroidPrime/CInstruction.hpp @@ -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& assetsOut) const; + virtual void PageInvoke(CFontRenderState& state, CTextRenderBuffer* buf) const; + virtual void Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const = 0; +}; + +#endif // _CINSTRUCTION diff --git a/src/MetroidPrime/CInstruction.cpp b/src/MetroidPrime/CInstruction.cpp new file mode 100644 index 00000000..a6c5dca0 --- /dev/null +++ b/src/MetroidPrime/CInstruction.cpp @@ -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 {}