MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / CalssCallBackTest

Method CalssCallBackTest

samples/sample3/Sample3Module.cpp:164–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void Sample3Module::CalssCallBackTest()
165{
166 std::cout << GET_CLASS_NAME(Sample3Module) << ", TableTest" << std::endl;
167
168 m_pKernelModule->AddClassCallBack(AFEntityMetaPlayer::self_name(), this, &Sample3Module::OnClassCallBackEvent);
169
170 auto pEntity = CreateAnPlayerAndInit();
171 ARK_ASSERT_RET_NONE(pEntity != nullptr);
172
173 m_pKernelModule->DestroyEntity(pEntity->GetID());
174}
175
176void Sample3Module::DataCallBackTest()
177{

Callers

nothing calls this directly

Calls 2

DestroyEntityMethod · 0.80
AddClassCallBackMethod · 0.45

Tested by

no test coverage detected