This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdistract.wsd
1090 lines (882 loc) · 31.4 KB
/
distract.wsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@startuml RpgProject
package Rpg {
package RpgEntities {
enum arrow_keys <<Deprecated>> {
KEY_DOWN,
KEY_LEFT,
KEY_RIGHT,
KEY_UP
}
enum entity_type_t {
PLAYER,
SCROLL,
MENU,
SETTING,
VFX_SC,
ATH,
LAYER_MANAGER,
TILESET_LAYER_MANAGER,
TILESET_LAYER,
COLLISION_LAYER,
OBJECT_LAYER_MANAGER,
OBJECT_LAYER,
WARP,
HERO,
VIEW,
DEBUGMENU
}
enum view_type_t {
HUD_VIEW,
WORLD_VIEW
}
class view_t {
sfView *view;
sfView *hud_view;
entity_t *entity;
const hero_t *hero;
}
enum player_move <<Deprecated>> {
PLAYER_MOVE_DOWN,
PLAYER_MOVE_LEFT,
PLAYER_MOVE_RIGHT,
PLAYER_MOVE_UP,
PLAYER_MOVE_END
}
class hero_t {
entity_t *entity;
pausable_clock_t *animation_clock;
pausable_clock_t *movement_clock;
sfSprite *sprite;
double speed;
bool disable_collision;
}
class ath_t {
entity_t *entity;
sfSprite *player_ath_sprite;
sfVector2f ath_pos;
sfSprite *button_sprite[6];
view_t *view;
}
class menu_t {
entity_t *entity;
sfSprite *bg_sprite;
sfSprite *button_sprite[3];
}
class player_t <<Deprecated>> {
entity_t *entity;
pausable_clock_t *clock;
sfSprite *sprite;
}
class scroll_bar_t <<Depreacted>> {
entity_t *entity;
pausable_clock_t *clock;
sfRectangleShape *scroll_bar;
}
Package MapRpg {
class map_loader_t {
entity_t *entity;
layer_manager_t manager;
}
class layer_manager_t {
layer_object_manager_t *objects;
layer_tileset_manager_t *tilesets;
laer_collision_t *collision;
sfVector2u mapsize;
}
Package MapRpgLayerObject {
class layer_object_manager_t {
entity_t *entity;
vector_layer_object_info_t* layer;
size_t actual_layer;
}
class layer_object {
entity_t *entity;
layer_object_info_t *obj;
}
enum layer_object_type_t {
LO_WARP,
LO_NPC,
LO_UNDEFINED,
LO_COUNT,
LO_PNJ = LO_NPC
}
interface warpzone_t {
char *world;
sfVector2i spawn;
}
interface layer_object_value_t <<Union>> {
char *message;
warpzone_t warp;
}
class layer_object_data {
layer_object_type_t type;
sfIntRect rect;
layer_object_value_t object;
}
class layer_object_info_t {
layer_object_data obj;
usize_t z;
}
}
package MapRpgCollision {
class layer_collision_t {
entity_t *entity;
layer_collision_data_t data;
}
class layer_collision_data_t {
bool *map;
size_t size;
sfVertexArray *vao;
sfVector2u mapsize;
size_t z;
}
}
package MapRpgTileset {
class layer_tileset_manager {
entity_t *entity;
vector_layer_tileset_t *tileset;
size_t actual_layer;
}
class tileset_layer_t {
layer_tileset_info_t layer;
entity_t *entity;
}
enum rotation_tile_map {
ROT_0,
ROT_90,
ROT_180,
ROT_270
}
interface vertex_loader <<Parser>> {
size_t i;
size_t j;
i64_t tu;
i64_t tv;
size_t mapx;
size_t mapy;
sfVector2u txsize;
size_t tilesize;
size_t tilesetindex;
size_t layerindex;
}
interface tileset_parser_args <<Parser>> {
ig_layer_t *layer;
layer_tileset_info_t *manager;
vector_ig_tileset_t *tileset
}
class layer_tileset_info_t {
sfTexture *texture;
sfVertexArray *vtx;
size_t z;
}
}
}
Package DebugRpg {
class debugmenu_t {
entity_t *entity;
pausable_clock_t *clock;
sfText *text;
view_t *view;
bool enabled;
hero_t *hero;
}
}
}
package RpgLifecycle {
enum scene_id {
PLAY_SCENE,
MENU_SCENE,
KEY_CONFIG,
SETTING_SCENE
}
interface running_scene {
int (*lifecycle)(game_t *);
}
}
package UtilRpg {
class corner_t {
sfVector2f topleft;
sfVector2f topright;
sfVector2f bottomleft;
sfVector2f bottomright;
}
enum corner_type {
CORNER_SPRITE,
CORNER_RECT
}
interface draw_rects {
(*draw_rectangle_shape_global_bound)(sfRenderWindow *window, sfSprite *sprite, bool full);
(*get_corners)(void *r, enum corner_type type);
}
}
}
package Engine {
package Distract {
class game_t<S = void *> {
+ sfRenderWindow *window
+ sfRenderStates renderer
- scene_info_t *scenes
- entity_info_t *entities
- scene_t *scene
+ sfVideoMode mode
+ sfBool is_paused
+ S state
- input_t input;
}
package Machine {
package EntityHandler {
abstract entity_t<T = void *> {
- entity_t *next
- entity_t *prev
- int type
- entity_info_t *info
+ sfVector2f pos;
+ int z
+ T instance
- bool use_multithreading
- thread_info_t *threadinfo;
}
interface entity_info_t {
- entity_info_t *next
- int type
- void create(game_t *game, entity_t *entity)
- void destroy(game_t *game, entity_t *entity)
- void draw(game_t *game, entity_t *entity)
- void update(game_t *game, entity_t *entity)
- bool handle_event(game_t *game, entity_t *entity, sfEvent *event)
}
package UserHandler {
interface keyboard_input {
- bool is_beign_pressed;
- bool is_pressed;
- bool is_beign_released;
- bool was_pressed;
}
class input_t {
+ keyboard_input keys[sfKeyCount];
}
input_t::keys --> keyboard_input
}
}
package SceneHandler {
abstract scene_t<S = void *> {
+ int id;
- char *world_file;
- scene_info_t* info;
+ entity_t* entities;
+ hashmap_t* resources;
- bool in_exit_state;
- int pending_scene_id;
+ S state;
}
interface scene_info_t<S = void *> {
- scene_info_t *next
- int id
- int lifecycle(game_t *game)
+ S storage
}
}
package Threads {
class thread_info_t {
- sfThread *thread;
+ game_t *game;
+ entity_t *entity;
}
interface job_message_t {
- int type;
+ void *content;
}
class job_t {
- sfMutex *mutex;
- sfThread *thread;
- void *data;
- void (*action)(struct job *);
- unsigned char messages_count;
- job_message_t messages[256];
- bool in_progress;
}
job_t::messages --> job_message_t
}
}
package ResourceHandler {
enum resource_type_t {
R_TEXTURE,
R_MUSIC,
R_SOUND_BUFFER,
R_SOUND,
R_FONT,
R_VERTEX
}
interface "resource_data_union_t" <<Union>> {
sfTexture *texture;
sfMusic *music;
sfSoundBuffer *sound_buffer;
sfSound *sound;
sfFont *font;
sfVertexArray *vao;
}
class hashmap_t {
size_t size;
size_t capacity;
void **keys;
void **values;
size_t (*hasher)(struct hashmap *map, void *key);
}
class resource_t {
resource_type_t type;
char *path;
resource_data_union_t data;
}
}
package Component {
package ClockHandler {
class pausable_clock_t {
game_t *game;
sfClock *frame_clock;
float time;
sfBool is_paused;
sfBool hash_game_pause;
}
}
package Sound {
class sound_emitter_t {
float volumes[32];
}
}
}
package DebugDistract {
interface debug {
void (*print_error)(char *error);
void (*D_ASSERT)(T var, T2 unexpected, char *error, T3 return_value)
}
}
package CollisionHandler {
package RayCast {
interface ray_t <<Input>> {
sfVector2f base;
sfVector2f direction;
float max_distance;
}
interface rayhit_t <<Output>> {
sfVector2f point;
entity_t *target;
}
rayhit_t::target -> entity_t
ray_t -> rayhit_t
}
}
Package Renderer {
interface framebuffer_t {
unsigned int width;
unsigned int height;
sfUint8 *pixels;
}
}
}
Package IronGoat {
Package Erty {
package ParsingAndContainers {
interface string_parser {
char *(*estrdup)(char *src);
int (*estrcmp)(char *s1, char *s2);
size_t (*estrlen)(char *s);
char *(*estrndup)(char *s, size_t n);
char **(*esplit)(char *buf, char *delim);
void (*ememcpy)(void *dest, void const *src, size_t size)
void (*ememset)(void *ptr, int c, size_t size);
char *(*eformat)(char const *format, ...);
}
class vector <<T>> {
T *data;
size_t size;
size_t a_size;
ssize_t (*push_back)(vector<<T>> *, T);
void (*_del)(T *);
void (*clear)(vector<<T>> **);
}
interface tuple <<T>> {
T type;
char *name;
}
class list <<T>> {
T data;
list<<T>> *prev;
list<<T>> *next;
}
interface opt<<T>> {
T value;
bool is_ok;
}
interface list_extern <<T>> {
list<<T>> *list;
bool (*push_back)(list_extern<<T>> **head, T data);
bool (*push_front)(list_extern<<T>> **head, T data);
bool (*insert)(list_extern<<T>> **head, T data, size_t i);
bool (*pop_front)(list_extern<<T>> **head);
bool (*pop_back)(list_extern<<T>> **head);
bool (*erase)(list_extern<<T>> **head, size_t i);
bool (*clear)(list_extern<<T>> **head);
void (*_del)(T *data);
opt<<T>> (*at)(list_extern<<T>> **head, size_t i);
}
class hashmap <<T>> {
u64_t (*hash)(const void *);
size_t size;
size_t bucket_count;
bool (*insert)(hashmap<<T>> *, tuple<<T>>);
void (*clear)(hashmap<<T>> *, void *key);
}
}
Package PrintAndAssertion {
interface Assert {
(*assert)(char *prg, char *expr);
(*debug_assert)(char *ptr, char *expr);
}
interface Print {
int (*eprintf)(char const *format, ...);
int (*edprintf)(int fd, char const *format, ...);
int (*efprintf)(FILE *stream, char const *format, ...);
}
}
Package Json {
enum json_type {
JSON_ANY,
JSON_STR,
JSON_NUM,
JSON_OBJ,
JSON_ARR,
JSON_BOOL,
JSON_NULL
}
interface json_value <<Union>> {
char *string;
long long number;
bool boolean;
void *null;
void *array;
void object;
}
class json_t {
json_value v;
json_type t;
}
package JsonHashmap {
interface json_tuple_bucket_t {
char *key;
json_t data;
}
class json_hashmap_t {
unsigned long long (*hash)(const void *);
size_t key;
size_t bucket_count;
bool (*insert)(json_hashmap_t **, json_tuple_bucket_t);
void (*clear)(json_hashmap_t **);
opt<<json_t>> (*get)(json_hashmap_t **, void *key);
json_bucket_t *bucket;
}
interface json_bucket_data_t {
json_tuple_bucket_t data;
json_bucket_data_t *next;
json_bucket_data_t *prev;
}
class json_bucket_t {
json_bucket_data_t *list;
bool (*push_back)(json_bucket_t *, json_tuple_bucket_t);
bool (*push_front)(json_bucket_t *, json_tuple_bucket_t);
bool (*insert)(json_bucket_t *, json_tuple_bucket_t, size_t);
void (*pop_front)(json_bucket_t *);
void (*pop_back)(json_bucket_t *);
void (*erase)(json_bucket_t *, size_t);
void (*clear)(json_bucket_t *);
void (*_del)(json_tuple_bucket_t *);
OPT(json_bucket) (*at)(json_bucket_t *, size_t i);
}
}
class json_array_t {
json_t *data;
size_t size;
size_t a_size;
ssize_t (*push_back)(json_array_t **, json_t);
void (*_del)(json_t *);
void (*clear)(json_array_t **);
}
}
}
Package TiledGoat {
Package TiledData {
enum ig_map_orient_t {
MAP_ORIENT_NONE,
MAP_ORTHOGONAL,
MAP_ISOMETRIC,
MAP_STAGGERED,
MAP_HEXAGONAL
}
enum ig_map_renderorder_t {
MAP_RENDER_NONE,
MAP_RIGHT_DOWN,
MAP_RIGHT_UP,
MAP_LEFT_DOWN,
MAP_LEFT_UP
}
enum ig_map_staggerindex_t {
MAP_STAG_ODD,
MAP_STAG_EVEN
}
enum ig_layer_draworder_t {
LAYER_DRAWORDER_NONE,
LAYER_TOPDOWN,
LAYER_INDEX
}
enum ig_layer_type_t {
LAYER_TYPE_NONE,
LAYER_TILELAYER,
LAYER_OBJECT_GROUP,
LAYER_IMAGE_LAYER,
LAYER_GROUP
}
enum ig_layer_encoding_t {
LAYER_ENCODE_NONE,
LAYER_CSV,
LAYER_BASE64
}
enum ig_text_halign_t {
HALIGN_NONE,
HALIGN_CENTER,
HALIGN_RIGHT,
HALIGN_JUSTIFY,
HALIGN_LEFT
}
enum ig_text_valign_t {
VALIGN_NONE,
VALIGN_CENTER,
VALIGN_BOTTOM,
VALIGN_TOP
}
enum ig_object_type_t {
OBJECT_NONE,
OBJECT_ELLIPSE,
OBJECT_POINT,
OBJECT_RECT,
OBJECT_POLYGON,
OBJECT_POLYLINE,
OBJECT_TEXT,
OBJECT_TILE
}
enum ig_property_type_t {
PROP_NONE,
PROP_STRING,
PROP_INT,
PROP_FLOAT,
PROP_BOOL,
PROP_COLOR,
PROP_FILE
}
enum ig_grid_orientation_t {
GRID_NONE,
GRID_ORTHOGONAL,
GRID_ISOMETRIC
}
interface iron_goat_property_value <<Union>> {
char *str;
long long i;
long long f;
bool b;
u32_t color;
char *file;
}
class iron_goat_grid {
unsigned long long height;
ig_grid_orientation_t orientation;
unsigned long long width;
}
class iron_goat_tileoffset {
long long x;
long long y;
}
class iron_goat_frame {
unsigned long long duration;
unsigned long long tileid;
}
class iron_goat_terrain {
char *name;
vector<<iron_goat_property>> *properties;
unsigned long long tile;
}
class iron_goat_tile_terrain {
size_t tile[4];
}
class iron_goat_wangcolor {
unsigned int color;
char *name;
long long probability;
vector<<iron_goat_property>> *properties;
unsigned long long tile;
}
class iron_goat_wangtile {
long long tiledid;
char wangid[8];
}
class iron_goat_wangset {
vector<<iron_goat_wangcolor>> *cornercolors;
vector<<iron_goat_wangocolor>> *edgecolors;
char *name;
vector<<iron_goat_properties>> *properties;
unsigned long long tile;
vector<<iron_goat_wangtile>> *wangtiles;
}
class iron_goat_tileset {
unsigned int backgroundcolor;
unsigned long long columns;
unsigned long long firstgid;
opt<<iron_goat_grid>> grid;
char *image;
unsigned long long imageheight;
unsigned long long imagewidth;
unsigned long long margin;
char *name;
vector<<iron_goat_properties>> *properties;
char *source;
unsigned long long spacing;
vector<<iron_goat_terrain>> *terrains;
unsigned long long tilecount;
char *tiledversion;
unsigned long long tileheight;
iron_goat_tileoffset tileoffset;
vector<<iron_goat_tile>> *tiles;
unsigned long long tilewidth;
opt<<unsigned int>> transparentcolor;
char *type;
vector<<iron_goat_wangset>> *wangsets;
}
class iron_goat_property {
char *name;
ig_property_type_t type;
iron_goat_property_value value;
}
class iron_goat_object {
bool ellipse;
unsigned long long gid;
long long height;
unsigned long long id;
char *name;
bool point;
vector<<iron_goat_point>> *polygon;
vector<<iron_goat_property>> *properties;
char *template;
char *type;
bool visible;
long long width;
long long x;
long long y;
}
class iron_goat_text {
bool bold;
unsigned int color;
char *fontfamily;
ig_text_halign_t halign;
bool italic;
bool kerning;
unsigned long long pixelsize;
bool strikeout;
char *text;
bool underline;
ig_text_valign_t valign;
bool wrap;
}
class iron_goat_point {
long long x;
long long y;
}
class iron_goat_chunk {
vector<<unsigned long long>> *data;
unsigned long long height;
unsigned long long width;
long long x;
long long y;
}
interface layer_data_vector {
size_t size;
unsigned long long *data;
}
class iron_goat_layer {
vector<<iron_goat_chunk>> *chunks;
layer_data_vector data;
ig_layer_draworder_t draworder;
ig_layer_encoding_t encoding;
unsigned long long height;
unsigned long long id;
char *image;
vector<<iron_goat_layer>> *layers;
char *name;
vector<<iron_goat_object>> *objects;
long long offsetx;
long long offsety;
long long opacity;
vector<<iron_goat_properties>> *properties;
long long startx;
long long starty;
unsigned int tintcolor;
unsigned int transparentcolor;
ig_layer_type_t type;
bool visible;
unsigned long long width;
long long x;
long long y;
}
class iron_goat_tile {
vector<<iron_goat_frame>> *animation;
unsigned long long id;
char *image;
unsigned long long imageheight;
unsigned long long imagewidth;
opt<<iron_goat_layer>> objectgroup;
opt<<long long>> probability;
vector<<iron_goat_layer>> properties;
opt<<iron_goat_terrain>> terrain;
char *type;
}
class iron_goat_map {
unsigned int backgroundcolor;
long long compressionlevel;
unsigned long long height;
long long hexsidelength;
bool infinite;
vector<<iron_goat_layer>> *layers;
long long nextlayerid;
long long nextobjectid;
ig_map_orient_t orientation;
vector<<iron_goat_properties>> *properties;
ig_map_renderorder_t renderorder;
ig_map_staggerindex_t staggerindex;
char *tiledversion;
unsigned long long tileheight;
vector<<iron_goat_tileset>> *tilesets;
char *type;
long long version;
unsigned long long width;
}
}
Package Deser {
interface inter_fun_deser {
bool (*callback)();
bool woff;
}
class json_deser_data {
char *data;
const size_t size_data;
const size_t offset;
const inter_fun_deser intern;
const int type;
bool opt;
}
class json_deser {
const json_deser_data *data;
const size_t size;
}
interface deser_loop <<T>> {
bool (*deser_loop)(json_t *conf, T new, json_deser info);
bool (*deser_opt_check)(json_t *conf, T new, json_deser info);
bool (*deser_intern_copy)(json_t *conf, T new, json_deser info, json_deser tmp, void *ptr);
}
}
}
}
}
game_t::scenes --> scene_info_t
game_t::entities --> entity_info_t
game_t::scene --> scene_t
game_t::input --> input_t
entity_t::info --> entity_info_t
entity_t::threadinfo --> thread_info_t
resource_t::type --> resource_type_t
hashmap_t --> resource_t
resource_t --> resource_data_union_t
resource_t::path -> hashmap_t::keys
resource_t::data -> hashmap_t::values
scene_t::info ---> scene_info_t
'scene_t::entities ---> entity_t
scene_t::resources ---> hashmap_t
Renderer -> game_t::renderer
'RpgEntities -> EntityHandler
view_t -> Renderer
'hero_t -> EntityHandler
hero_t -> UserHandler
'hero_t -> entity_t
hero_t -> layer_collision_t::map
'map_loader_t -> EntityHandler
'debugmenu_t -> EntityHandler
running_scene -> SceneHandler
layer_manager_t -> SceneHandler
MapRpgTileset -> layer_manager_t
MapRpgCollision -> layer_manager_t
MapRpgLayerObject -> layer_manager_t
layer_object_manager_t -> layer_object
layer_object_manager_t <- layer_object
layer_object_manager_t::obj -> layer_object_data
layer_object::obj -> layer_object_data
layer_object_data::type -> layer_object_type_t
layer_object_data::object -> warpzone_t