From 4624d02e5127bf02a8e1a996ad52696952109f33 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Fri, 14 Oct 2022 11:29:59 +0300 Subject: [PATCH] Add CInstruction Former-commit-id: 1f5290572d4592fad389df596bbf2682d1ba9492 --- include/MetroidPrime/CInstruction.hpp | 22 ++++++++++++++++++++++ src/MetroidPrime/CInstruction.cpp | 7 +++++++ 2 files changed, 29 insertions(+) create mode 100644 include/MetroidPrime/CInstruction.hpp create mode 100644 src/MetroidPrime/CInstruction.cpp 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 {}