mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Adds the Systems for the Entity-Component-Systems setup.
This commit is contained in:
parent
2e47c92c16
commit
8bd533e001
7 changed files with 666 additions and 9 deletions
34
Engine/source/T3D/systems/updateSystem.cpp
Normal file
34
Engine/source/T3D/systems/updateSystem.cpp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#include "T3D/systems/updateSystem.h"
|
||||
|
||||
void UpdateSystem::processTick()
|
||||
{
|
||||
for (U32 i = 0; i < UpdateSystemInterface::all.size(); i++)
|
||||
{
|
||||
if (UpdateSystemInterface::all[i]->mIsEnabled)
|
||||
{
|
||||
//do work
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateSystem::advanceTime(U32 _tickMS)
|
||||
{
|
||||
for (U32 i = 0; i < UpdateSystemInterface::all.size(); i++)
|
||||
{
|
||||
if (UpdateSystemInterface::all[i]->mIsEnabled)
|
||||
{
|
||||
//do work
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateSystem::interpolateTick(U32 _deltaMS)
|
||||
{
|
||||
for (U32 i = 0; i < UpdateSystemInterface::all.size(); i++)
|
||||
{
|
||||
if (UpdateSystemInterface::all[i]->mIsEnabled)
|
||||
{
|
||||
//do work
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue