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.

@ -15,5 +15,14 @@ int main(){
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