updateSystem.cpp 661 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "T3D/systems/updateSystem.h"
  2. void UpdateSystem::processTick()
  3. {
  4. for (U32 i = 0; i < UpdateSystemInterface::all.size(); i++)
  5. {
  6. if (UpdateSystemInterface::all[i]->mIsEnabled)
  7. {
  8. //do work
  9. }
  10. }
  11. }
  12. void UpdateSystem::advanceTime(U32 _tickMS)
  13. {
  14. for (U32 i = 0; i < UpdateSystemInterface::all.size(); i++)
  15. {
  16. if (UpdateSystemInterface::all[i]->mIsEnabled)
  17. {
  18. //do work
  19. }
  20. }
  21. }
  22. void UpdateSystem::interpolateTick(U32 _deltaMS)
  23. {
  24. for (U32 i = 0; i < UpdateSystemInterface::all.size(); i++)
  25. {
  26. if (UpdateSystemInterface::all[i]->mIsEnabled)
  27. {
  28. //do work
  29. }
  30. }
  31. }