2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 23:39:12 +00:00

Implement FlatDraw/DrawFlat calls, add CRandom16 seed value display

This commit is contained in:
2022-07-02 16:16:33 -07:00
parent 52e9afbe98
commit ec9e0bfc0f
6 changed files with 29 additions and 7 deletions

View File

@@ -6,9 +6,12 @@ CRandom16* CRandom16::g_randomNumber = nullptr; // &DefaultRandom
CGlobalRandom* CGlobalRandom::g_currentGlobalRandom = nullptr; //&DefaultGlobalRandom;
namespace {
u32 g_numNextCalls = 0;
u32 g_lastSeed = 0;
};
void CRandom16::IncrementNumNextCalls() { ++g_numNextCalls; }
u32 CRandom16::GetNumNextCalls() { return g_numNextCalls; }
void CRandom16::ResetNumNextCalls() { g_numNextCalls = 0; }
u32 CRandom16::GetLastSeed() { return g_lastSeed; }
void CRandom16::SetLastSeed(u32 seed) { g_lastSeed = seed; }
} // namespace metaforce