| 11 | namespace OD2::Scenes::MapTest { |
| 12 | |
| 13 | class MapTest final : public Abyss::Common::Scene { |
| 14 | std::vector<std::string> _mapSelections{}; |
| 15 | std::vector<std::string> _mapAltSelections{}; |
| 16 | std::string _selectedLevelName{}; |
| 17 | std::string _selectedLevelAltName{}; |
| 18 | SDL_Point _mousePressedPosition{0, 0}; |
| 19 | SDL_Point _startCameraPosition{0, 0}; |
| 20 | bool _isMouseDragging{false}; |
| 21 | std::unique_ptr<Abyss::MapEngine::MapEngine> _mapEngine; |
| 22 | int _mapWidth; |
| 23 | |
| 24 | void onLevelChanged(const std::string &levelName); |
| 25 | static const Common::DataTableRow &getLevelPrest(std::string_view name); |
| 26 | static const Common::DataTableRow &getLevelDetails(int levelId); |
| 27 | static const Common::DataTableRow &getLevelType(int levelTypeId); |
| 28 | |
| 29 | public: |
| 30 | MapTest(); |
| 31 | void update(std::chrono::duration<double> deltaTime) override; |
| 32 | void processEvent(const SDL_Event &event) override; |
| 33 | void loadTile(const std::string &altName); |
| 34 | void render() override; |
| 35 | }; |
| 36 | |
| 37 | } // namespace OD2::Scenes::MapTest |
nothing calls this directly
no outgoing calls
no test coverage detected