whoa/src/ui/game/CGDressUpModelFrame.cpp
fallenoak f19894ef12
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
feat(ui): add stub implementations of remaining game frame classes
2026-01-29 21:33:04 -06:00

38 lines
1.2 KiB
C++

#include "ui/game/CGDressUpModelFrame.hpp"
#include "ui/game/CGDressUpModelFrameScript.hpp"
int32_t CGDressUpModelFrame::s_metatable;
int32_t CGDressUpModelFrame::s_objectType;
CSimpleFrame* CGDressUpModelFrame::Create(CSimpleFrame* parent) {
// TODO use CDataAllocator
return STORM_NEW(CGDressUpModelFrame)(parent);
}
void CGDressUpModelFrame::CreateScriptMetaTable() {
auto L = FrameScript_GetContext();
CGDressUpModelFrame::s_metatable = FrameScript_Object::CreateScriptMetaTable(L, &CGDressUpModelFrame::RegisterScriptMethods);
}
int32_t CGDressUpModelFrame::GetObjectType() {
if (!CGDressUpModelFrame::s_objectType) {
CGDressUpModelFrame::s_objectType = ++FrameScript_Object::s_objectTypes;
}
return CGDressUpModelFrame::s_objectType;
}
void CGDressUpModelFrame::RegisterScriptMethods(lua_State* L) {
CGCharacterModelBase::RegisterScriptMethods(L);
FrameScript_Object::FillScriptMethodTable(L, CGDressUpModelFrameMethods, NUM_CG_DRESS_UP_MODEL_FRAME_SCRIPT_METHODS);
}
CGDressUpModelFrame::CGDressUpModelFrame(CSimpleFrame* parent) : CGCharacterModelBase(parent) {
// TODO
}
int32_t CGDressUpModelFrame::GetScriptMetaTable() {
return CGDressUpModelFrame::s_metatable;
}