|
|
|
@ -1,9 +1,8 @@ |
|
|
|
|
|
|
|
|
|
#include <sstream> |
|
|
|
|
#include <fstream> |
|
|
|
|
#include <map> |
|
|
|
|
#include <vector> |
|
|
|
|
#include <iostream> |
|
|
|
|
#include "pixelGameEngine.h" |
|
|
|
|
#include <strstream> |
|
|
|
|
|
|
|
|
|
using namespace olc; |
|
|
|
|
|
|
|
|
|
struct XMLTag{ |
|
|
|
|
std::string tag; |
|
|
|
@ -40,7 +39,6 @@ struct XMLTag{ |
|
|
|
|
|
|
|
|
|
struct LayerTag{ |
|
|
|
|
XMLTag tag; |
|
|
|
|
public: |
|
|
|
|
std::vector<std::vector<int>> tiles; |
|
|
|
|
std::string str() { |
|
|
|
|
std::string displayStr=tag.tag+"\n"+tag.FormatTagData(tag.data); |
|
|
|
@ -132,7 +130,6 @@ class TMXParser{ |
|
|
|
|
if (data.empty()) continue; |
|
|
|
|
|
|
|
|
|
if (accumulator.length()>0) { |
|
|
|
|
//We're accumulating strings until we find '>'
|
|
|
|
|
accumulator+=" "+data; |
|
|
|
|
//Check if it ends with '>'
|
|
|
|
|
if (data[data.length()-1]=='>') { |
|
|
|
|