R-Type
R-Type project
MapManager.hpp
1 #pragma once
2 
3 #include "KapEngine.hpp"
4 #include "MapScript/MapScript.hpp"
5 
6 namespace RType {
8  private:
9  bool isLoaded = false;
10  bool isSpawn = false;
11 
12  std::shared_ptr<MapScript> mapScript = nullptr;
13  std::vector<SpawnEnemy> enemies;
14  long long lastUpdate = 0;
15 
16  public:
17  explicit MapManager(std::shared_ptr<KapEngine::GameObject> go);
18  ~MapManager();
19 
20  void loadMapScript(const std::string &path, bool isServer, bool _isSpawn = true);
21 
22  void onFixedUpdate() override;
23  };
24 } // namespace RType
RType::MapManager::onFixedUpdate
void onFixedUpdate() override
call eachv x ms
Definition: MapManager.cpp:31
RType::MapManager
Definition: MapManager.hpp:7
KapEngine::Component
Definition: Component.hpp:38