2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 22:27:41 +00:00

More field discoveries and imps

This commit is contained in:
Jack Andersen
2016-03-18 17:58:01 -10:00
parent 0c83d5ba2b
commit 5a4033e925
13 changed files with 172 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
#include "CInstruction.hpp"
#include "CFontRenderState.hpp"
#include "CTextRenderBuffer.hpp"
namespace urde
{
@@ -25,4 +26,41 @@ void CColorOverrideInstruction::Invoke(CFontRenderState& state, CTextRenderBuffe
state.x0_drawStrOpts.x4_vec[x4_overrideIdx] = convCol;
}
void CFontInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
{
buf->AddFontChange(x4_font);
state.x14_token = x4_font;
state.RefreshPalette();
}
void CFontInstruction::GetAssets(std::vector<CToken>& assetsOut) const
{
assetsOut.push_back(x4_font);
}
size_t CFontInstruction::GetAssetCount() const
{
return 1;
}
void CExtraLineSpaceInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
{
state.x44_extraLineSpace = x4_extraSpace;
}
void CLineInstruction::TestLargestFont(int, int, int)
{
}
void CLineInstruction::InvokeLTR(CFontRenderState& state) const
{
}
void CLineInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
{
InvokeLTR(state);
state.xa0_ = true;
state.x74_currentLineInst = this;
}
}