FastLoader.h 594 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "EmulatorComponent.h"
  3. #include "GameState.h"
  4. #include <string>
  5. namespace TLAC::Components
  6. {
  7. class FastLoader : public EmulatorComponent
  8. {
  9. public:
  10. FastLoader();
  11. ~FastLoader();
  12. virtual const char* GetDisplayName() override;
  13. virtual void Initialize(ComponentsManager*) override;
  14. virtual void Update() override;
  15. virtual void UpdateInput() override;
  16. private:
  17. const std::string COMPONENTS_CONFIG_FILE_NAME = "components.ini";
  18. int updatesPerFrame = 39;
  19. GameState currentGameState;
  20. GameState previousGameState;
  21. bool dataInitialized = false;
  22. };
  23. }