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

Method DataCallBackTest

samples/sample3/Sample3Module.cpp:176–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void Sample3Module::DataCallBackTest()
177{
178 std::cout << GET_CLASS_NAME(Sample3Module) << ", TableTest" << std::endl;
179
180 m_pKernelModule->AddNodeCallBack(
181 AFEntityMetaPlayer::self_name(), AFEntityMetaPlayer::gender(), this, &Sample3Module::OnDataCallBackEvent);
182
183 auto pEntity = CreateAnPlayerAndInit();
184 ARK_ASSERT_RET_NONE(pEntity != nullptr);
185
186 pEntity->SetInt32(AFEntityMetaPlayer::gender(), 1);
187 pEntity->SetInt32(AFEntityMetaPlayer::gender(), 2);
188}
189
190void Sample3Module::TableCallBackTest()
191{

Callers

nothing calls this directly

Calls 2

AddNodeCallBackMethod · 0.45
SetInt32Method · 0.45

Tested by

no test coverage detected