ADT Editor chapter III

Now the ADT class it’s a class! =D
The code that I used in the lastest post it’s only simple PHP and not POO.

Here are some examples about how to use the class:
ADT Initializacion, this is necessary before you use the function that you want to use:

//Class Example usage
$MyADT = new ADT();

And now, these functions will return an array that you can use to see the info of the declared chunk. You can use print_r($MyADT->ADT_Load_Textures()); to see the final result:


And if you want to use the All_Z feature just simply call these functions:


You can use too this function to see if the map has water or not:


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.