whoa/src/ui/game/CGTabardModelFrame.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/CGTabardModelFrame.hpp"
#include "ui/game/CGTabardModelFrameScript.hpp"
int32_t CGTabardModelFrame::s_metatable;
int32_t CGTabardModelFrame::s_objectType;
CSimpleFrame* CGTabardModelFrame::Create(CSimpleFrame* parent) {
// TODO use CDataAllocator
return STORM_NEW(CGTabardModelFrame)(parent);
}
void CGTabardModelFrame::CreateScriptMetaTable() {
auto L = FrameScript_GetContext();
CGTabardModelFrame::s_metatable = FrameScript_Object::CreateScriptMetaTable(L, &CGTabardModelFrame::RegisterScriptMethods);
}
int32_t CGTabardModelFrame::GetObjectType() {
if (!CGTabardModelFrame::s_objectType) {
CGTabardModelFrame::s_objectType = ++FrameScript_Object::s_objectTypes;
}
return CGTabardModelFrame::s_objectType;
}
void CGTabardModelFrame::RegisterScriptMethods(lua_State* L) {
CGCharacterModelBase::RegisterScriptMethods(L);
FrameScript_Object::FillScriptMethodTable(L, CGTabardModelFrameMethods, NUM_CG_TABARD_MODEL_FRAME_SCRIPT_METHODS);
}
CGTabardModelFrame::CGTabardModelFrame(CSimpleFrame* parent) : CGCharacterModelBase(parent) {
// TODO
}
int32_t CGTabardModelFrame::GetScriptMetaTable() {
return CGTabardModelFrame::s_metatable;
}