]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/server/schematic.h
refactoring
[dragonblocks_alpha.git] / src / server / schematic.h
1 #ifndef _SCHEMATIC_H_
2 #define _SCHEMATIC_H_
3
4 #include <dragonstd/list.h>
5 #include <stdbool.h>
6 #include <stddef.h>
7 #include "node.h"
8 #include "server/server_terrain.h"
9 #include "types.h"
10
11 typedef struct {
12         v3s32 color;
13         NodeType type;
14         bool use_color;
15 } SchematicMapping;
16
17 typedef struct {
18         v3s32 pos;
19         NodeType type;
20         Blob data;
21 } SchematicNode;
22
23 void schematic_load(List *schematic, const char *path, SchematicMapping *mappings, size_t num_mappings);
24 void schematic_place(List *schematic, v3s32 pos, TerrainGenStage tgs, List *changed_chunks);
25 void schematic_delete(List *schematic);
26
27 #endif // _SCHEMATIC_H_