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

Method TableTest

samples/sample3/Sample3Module.cpp:133–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void Sample3Module::TableTest()
134{
135 std::cout << GET_CLASS_NAME(Sample3Module) << ", TableTest" << std::endl;
136
137 // create player
138 auto pEntity = CreateAnPlayerAndInit();
139 ARK_ASSERT_RET_NONE(pEntity != nullptr);
140
141 AFITable* pTable = pEntity->FindTable(RECORD_NAME);
142 ARK_ASSERT_RET_NONE(pTable != nullptr);
143
144 auto pRowData = pTable->AddRow(0);
145 ARK_ASSERT_RET_NONE(pRowData != nullptr);
146
147 pRowData->SetInt32(col_count, 22);
148}
149
150void Sample3Module::DestroyTest()
151{

Callers

nothing calls this directly

Calls 3

AddRowMethod · 0.80
FindTableMethod · 0.45
SetInt32Method · 0.45

Tested by

no test coverage detected