2 #include "clientnode.h"
6 ClientNodeDefintion client_node_definitions[NODE_UNLOADED] = {
7 {RESSOURCEPATH "textures/invalid.png", 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},
15 void init_client_node_definitions()
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);