]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/clientnode.c
Add mountain generation
[dragonblocks_alpha.git] / src / clientnode.c
1 #include "client.h"
2 #include "clientnode.h"
3 #include "node.h"
4 #include "texture.h"
5
6 ClientNodeDefintion client_node_definitions[NODE_UNLOADED] = {
7         {RESSOURCEPATH "textures/invalid.png", NULL},
8         {NULL, NULL},
9         {RESSOURCEPATH "textures/grass.png", NULL},
10         {RESSOURCEPATH "textures/dirt.png", NULL},
11         {RESSOURCEPATH "textures/stone.png", NULL},
12         {RESSOURCEPATH "textures/snow.png", NULL},
13 };
14
15 void init_client_node_definitions()
16 {
17         for (Node node = NODE_INVALID; node < NODE_UNLOADED; node++) {
18                 ClientNodeDefintion *def = &client_node_definitions[node];
19                 if (def->texture_path)
20                         def->texture = get_texture(def->texture_path);
21         }
22 }