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

Method OnLoop

TombEngine/Scripting/Internal/TEN/Logic/LogicHandler.cpp:999–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999void LogicHandler::OnLoop(float deltaTime, bool postLoop)
1000{
1001 if (!postLoop)
1002 {
1003 PerformCallbacks(CallbackPoint::PreLoop, deltaTime);
1004
1005 PerformConsoleInput();
1006
1007 lua_gc(_handler.GetState()->lua_state(), LUA_GCCOLLECT, 0);
1008 if (_onLoop.valid())
1009 CallLevelFunc(_onLoop, deltaTime);
1010 }
1011 else
1012 {
1013 PerformCallbacks(CallbackPoint::PostLoop, deltaTime);
1014 }
1015}
1016
1017void LogicHandler::OnSave()
1018{

Callers 1

GamePhaseFunction · 0.80

Calls 3

GetStateMethod · 0.80
lua_stateMethod · 0.45
validMethod · 0.45

Tested by

no test coverage detected