From 64b59757322e29c331c0a75262baec4382673e6f Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 28 Jan 2011 01:38:16 +0200 Subject: Now texture handling is fast. Also now players are saved on disk. --- src/tile.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/tile.h') diff --git a/src/tile.h b/src/tile.h index b903d92a8..ff495abc4 100644 --- a/src/tile.h +++ b/src/tile.h @@ -22,8 +22,26 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "common_irrlicht.h" //#include "utility.h" +#include "texture.h" #include +struct TileSpec +{ + TileSpec(): + alpha(255) + { + } + + bool operator==(TileSpec &other) + { + return (spec == other.spec && alpha == other.alpha); + } + + TextureSpec spec; + u8 alpha; +}; + +#if 0 struct TileSpec { TileSpec(): @@ -52,5 +70,6 @@ struct TileSpec std::string name; u8 alpha; }; +#endif #endif -- cgit v1.2.3