1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-03 07:27:11 +02:00

Initial implementation of entity tasks.

This commit is contained in:
Sandu Liviu Catalin
2016-11-17 00:23:59 +02:00
parent cb9581786e
commit 2d07ed67b9
13 changed files with 935 additions and 3 deletions

View File

@ -14,6 +14,7 @@ static bool g_Reload = false;
// ------------------------------------------------------------------------------------------------
extern void InitExports();
extern void ProcessTasks();
extern void ProcessRoutines();
/* ------------------------------------------------------------------------------------------------
@ -175,8 +176,9 @@ static void OnServerFrame(float elapsed_time)
Core::Get().EmitServerFrame(elapsed_time);
}
SQMOD_CATCH_EVENT_EXCEPTION(OnServerFrame)
// Process routines, if any
// Process routines and tasks, if any
ProcessRoutines();
ProcessTasks();
// See if a reload was requested
SQMOD_RELOAD_CHECK(g_Reload)
}