SimpleFrameScript_Scripts.cpp (7 Lua functions, register/unregister), CreateScriptMetaTable/DestroyScriptMetaTable, IsA, GetObjectTypeName and GetScriptMetaTable for 25 classes with their statics. CScriptRegion dtor, LoadXML, anim hooks and its 25 script methods; UnflattenFrame, DragBy, GetRectFramePoints (0x512410, name ours); CRenderBatch and the strata node; small CSimpleFrame/CSimpleTop/FontString/Texture/Font leaves. Anim-family, CSimpleTitleRegion and CSimpleMovieFrame headers rebuilt from the binary. Frame includes CSimpleModelFFX.h because 0x81B870 calls CSimpleModelFFX::CreateScriptMetaTable directly. Button/Checkbox IsA unchecked until the IDB splits 0x9621E0-0x962300. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Frame/CSimpleAnimGroup.h"
|
|
#include "Engine/Source/Frame/CScriptObject.h"
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
#include "Engine/Source/lua-5.1/src/lauxlib.h"
|
|
|
|
// STATIC: 0x00AC1AB4
|
|
int32_t CSimpleAnimGroup::s_metatable = LUA_NOREF;
|
|
|
|
// STATIC: 0x00B499DC
|
|
int32_t CSimpleAnimGroup::s_objectType;
|
|
|
|
// STATIC: 0x00AC13A8
|
|
const char* CSimpleAnimGroup::s_objectTypeName = "AnimationGroup";
|
|
|
|
// INLINED
|
|
int32_t CSimpleAnimGroup::GetObjectType() {
|
|
if (!CSimpleAnimGroup::s_objectType) {
|
|
CSimpleAnimGroup::s_objectType = ++FrameScript_Object::s_objectTypes;
|
|
}
|
|
|
|
return CSimpleAnimGroup::s_objectType;
|
|
}
|
|
|
|
// VERIFY: 43ebb9ad auto
|
|
// OFFSET: 0x00499FC0
|
|
bool CSimpleAnimGroup::IsA(int32_t type) {
|
|
return type == CSimpleAnimGroup::s_objectType || type == CScriptObject::s_objectType;
|
|
}
|
|
|
|
// VERIFY: 66a44196 auto
|
|
// OFFSET: 0x00499FF0
|
|
bool CSimpleAnimGroup::IsA(const char* typeName) {
|
|
return !SStrCmpI(typeName, CSimpleAnimGroup::s_objectTypeName, STORM_MAX_STR) || !SStrCmpI(typeName, CScriptObject::s_objectTypeName, STORM_MAX_STR);
|
|
}
|
|
|
|
// VERIFY: dc9c3f61 auto
|
|
// OFFSET: 0x0049A040
|
|
const char* CSimpleAnimGroup::GetObjectTypeName() {
|
|
return CSimpleAnimGroup::s_objectTypeName;
|
|
}
|
|
|
|
// VERIFY: c5ac6209 auto
|
|
// OFFSET: 0x0049A050
|
|
int32_t CSimpleAnimGroup::GetScriptMetaTable() {
|
|
return CSimpleAnimGroup::s_metatable;
|
|
}
|