Adds the Systems for the Entity-Component-Systems setup.

This commit is contained in:
Areloch 2018-01-28 16:58:00 -06:00
parent e9dbe788f6
commit 57284507f2
7 changed files with 666 additions and 9 deletions

View 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
}
}
}