diff options
Diffstat (limited to 'src/tile.h')
-rw-r--r-- | src/tile.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tile.h b/src/tile.h index b903d92a8..ff495abc4 100644 --- a/src/tile.h +++ b/src/tile.h @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "common_irrlicht.h" //#include "utility.h" +#include "texture.h" #include <string> struct TileSpec @@ -31,6 +32,23 @@ struct TileSpec { } + bool operator==(TileSpec &other) + { + return (spec == other.spec && alpha == other.alpha); + } + + TextureSpec spec; + u8 alpha; +}; + +#if 0 +struct TileSpec +{ + TileSpec(): + alpha(255) + { + } + TileSpec(const std::string &a_name): name(a_name), alpha(255) @@ -52,5 +70,6 @@ struct TileSpec std::string name; u8 alpha; }; +#endif #endif |