whoa/src/ui/game/CGQuestPOIFrame.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

39 lines
1.1 KiB
C++

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