summaryrefslogtreecommitdiff
path: root/src/tile.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-28 01:38:16 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-28 01:38:16 +0200
commit64b59757322e29c331c0a75262baec4382673e6f (patch)
treeb1404f42db92b92202655bdd4f13a6c4c7fdd39d /src/tile.h
parentbd100c5483eb77a27eeac4e476c81a1bf6afc710 (diff)
downloadminetest-64b59757322e29c331c0a75262baec4382673e6f.tar.gz
minetest-64b59757322e29c331c0a75262baec4382673e6f.tar.bz2
minetest-64b59757322e29c331c0a75262baec4382673e6f.zip
Now texture handling is fast. Also now players are saved on disk.
Diffstat (limited to 'src/tile.h')
-rw-r--r--src/tile.h19
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