0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 12:33:43 +00:00
2024-11-05 12:45:26 +01:00

28 lines
655 B
C++

#pragma once
#include <map>
#include <string>
#include <TextureEnumBase.h>
class GameInternal;
class Map
{
public:
Map() = default;
~Map() = default;
// code comment below is a test for doxygen - do not remove
/*!
*
* \brief
* This loads a map
*
* \param path The path to the map file
* \return Boolean for success
*
*/
static void loadMap(const char* path, int sizeX, int sizeY, GameInternal* game, const std::map<int, std::pair<TexturesEnum, bool>>* textureDict /* backreference */);
static void addTile(unsigned long id, int x, int y, GameInternal* game, const std::map<int, std::pair<TexturesEnum, bool>>* textureDict);
};