TickOrganizer.h 404 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <Array.h>
  3. #include "TickWorker.h"
  4. class TickOrganizer : public virtual Framework::ReferenceCounter
  5. {
  6. private:
  7. int workerCount;
  8. TickWorker** workers;
  9. Framework::Array<Block*> tickSources;
  10. TickQueue* queue;
  11. public:
  12. TickOrganizer();
  13. ~TickOrganizer();
  14. void nextTick();
  15. void addTickSource(Block* zBlock);
  16. void removeTickSource(Block* zBlock);
  17. };