Euphoria
world.cc
Go to the documentation of this file.
1 #include "files/world.h"
2 
3 namespace eu::files::world
4 {
6  {
8 
9  JSON_VAL(Number, x);
10  JSON_VAL(Number, y);
11 
13  }
14 
16  {
18 
19  JSON_VAL(String, name);
20  JSON_VAL_OPT_OBJ(vec2f, vec2f_value);
21 
23  }
24 
26  {
28 
29  JSON_VAL(String, template_name);
30  JSON_ARRAY(Property, properties);
31 
33  }
34 
36  {
38 
39  JSON_ARRAY(Object, objects);
40 
42  }
43 }
#define JSON_VAL_OPT_OBJ(TYPE, PROP)
Definition: json.h:125
#define JSON_BEGIN_OBJECT()
Definition: json.h:86
#define JSON_VAL(TYPE, PROP)
Definition: json.h:128
#define JSON_END_OBJECT()
Definition: json.h:166
#define JSON_ARRAY(TYPE, PROP)
Definition: json.h:132
JSON_PARSE_FUNC(vec2f)
Definition: world.cc:5