Decompile fn_04340 (CRenderObject::GetInstant)
Batch #1458 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_04340 CRenderObject::GetInstant: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
6edd69f2e2
commit
17def7f7e4
2 changed files with 9 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ public:
|
|||
void ScaleByPulse(float& scale) const;
|
||||
void ApplySwing(int mode, int& x, int& y, int& outX, int& outY) const;
|
||||
void SetInstantValue(int key, std::int64_t value);
|
||||
std::int64_t GetInstant(int key) const;
|
||||
void SetFrameSequence(
|
||||
unsigned char animation, unsigned char firstFrame, unsigned char lastFrame, unsigned char finishAnimation,
|
||||
unsigned char finishFrame, int timed, std::uint32_t duration, int loop
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#include "Contents/InstantVar.h"
|
||||
|
||||
#include "Contents/Actors/RenderObject.h"
|
||||
|
||||
// OFFSET: 0x00CA8EE0
|
||||
// OFFSET: 0x00CA9260
|
||||
// FUNCTION: fn_20997
|
||||
|
|
@ -11,7 +13,6 @@ void CInstantVar::Set(int key, std::int64_t value) {
|
|||
this->m_values[key] = value;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00612020
|
||||
// OFFSET: 0x0091BE20
|
||||
std::int64_t CInstantVar::Get(int key) const {
|
||||
const auto entry = this->m_values.find(key);
|
||||
|
|
@ -22,3 +23,9 @@ std::int64_t CInstantVar::Get(int key) const {
|
|||
void CInstantVar::Clear() {
|
||||
this->m_values.clear();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00612020
|
||||
// FUNCTION: fn_04340
|
||||
std::int64_t CRenderObject::GetInstant(int key) const {
|
||||
return this->render.instant.Get(key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue