generated from sigonasr2/CPlusPlusProjectTemplate
Access to layers
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
acbac940b0
commit
7d6a461c07
Binary file not shown.
9
main.cpp
9
main.cpp
@ -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…
x
Reference in New Issue
Block a user