]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/client_node.h
Add oceans and toggle keys for flight & collision
[dragonblocks_alpha.git] / src / client / client_node.h
index 6ff257d0dfa549c9170ef5865761c11d875631ef..e3884f13091d69180406fbf6719d4cc629b662d5 100644 (file)
@@ -5,6 +5,13 @@
 #include "client/texture.h"
 #include "map.h"
 
+typedef enum
+{
+       NV_NONE,
+       NV_TRANSPARENT,
+       NV_SOLID,
+} NodeVisibility;
+
 typedef struct
 {
        struct
@@ -13,6 +20,7 @@ typedef struct
                int indices[6];                 // input
                Texture *textures[6];   // output
        } tiles;
+       NodeVisibility visibility;
        void (*render)(v3s32 pos, MapNode *node, Vertex3D *vertex, int f, int v);
 } ClientNodeDefintion;