32 lines
478 B
C++
32 lines
478 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class Layer
|
|
{
|
|
public:
|
|
int width,height;
|
|
std::string name;
|
|
std::vector<std::vector<int>> data;
|
|
};
|
|
|
|
class Tileset
|
|
{
|
|
public:
|
|
int firstgid;
|
|
int tilewidth,tileheight,tilecount,columns;
|
|
|
|
std::string source;
|
|
int width,height;
|
|
};
|
|
|
|
class Map
|
|
{
|
|
public:
|
|
std::vector<Layer> data;
|
|
std::vector<Tileset> tiledata;
|
|
int tilewidth,tileheight;
|
|
Map(const std::string& TMXFilename);
|
|
Map()=default;
|
|
};
|