Access to layers

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent acbac940b0
commit 7d6a461c07
  1. BIN
      C++ProjectTemplate
  2. 9
      main.cpp

Binary file not shown.

@ -14,6 +14,15 @@ int main(){
int height = mapTag.GetInteger("height"); int height = mapTag.GetInteger("height");
bool isInfinite = mapTag.GetBool("infinite"); bool isInfinite = mapTag.GetBool("infinite");
std::cout<<version<<": "<<width<<","<<height<<","<<isInfinite; std::cout<<version<<": "<<width<<","<<height<<","<<isInfinite;
LayerTag layerTag = mData.LayerData[0];
XMLTag layer0Tag = layerTag.tag;
int layerID=layer0Tag.GetInteger("id");
std::cout<<"\n"<<layerID;
std::cout<<"\n"<<layerTag.tiles[8][6];
return -1; return -1;
} }

Loading…
Cancel
Save