MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / InitializeEventList

Function InitializeEventList

TombEngine/Game/control/volume.cpp:270–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 unsigned int InitializeEventList(std::vector<EventSet>& list)
271 {
272 unsigned int nodeCount = 0;
273
274 for (const auto& set : list)
275 {
276 for (const auto& evt : set.Events)
277 {
278 if ((evt.Mode == EventMode::Nodes) && !evt.Data.empty())
279 {
280 g_GameScript->ExecuteString(evt.Data);
281 nodeCount++;
282 }
283 }
284 }
285
286 return nodeCount;
287 }
288
289 void InitializeNodeScripts()
290 {

Callers 1

InitializeNodeScriptsFunction · 0.85

Calls 2

emptyMethod · 0.45
ExecuteStringMethod · 0.45

Tested by

no test coverage detected