]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/node.h
Append .zip to ZIP files generated by release script
[dragonblocks_alpha.git] / src / node.h
index fb51f19e6d5c9d788b69b9366f00402634d63ee5..06a8890334bb370dd7977261fb2a81d7dbe1f1e5 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef _NODE_H_
 #define _NODE_H_
 
-#include <linmath.h/linmath.h>
+#include "types.h"
 
 typedef enum
 {
-       NODE_INVALID,           // Used for invalid nodes received from server (caused by outdated clients)
+       NODE_INVALID,           // Used for unknown nodes received from server (caused by outdated clients)
        NODE_AIR,
        NODE_GRASS,
        NODE_DIRT,
@@ -16,9 +16,13 @@ typedef enum
 typedef struct
 {
        bool visible;
-       vec3 color;
+       bool color_initialized;
+       const char *color_str;
+       v3f color;
 } NodeDefintion;
 
+v3f get_node_color(NodeDefintion *def);
+
 extern NodeDefintion node_definitions[];
 
 #endif