This commit is contained in:
2023-01-03 23:13:31 +00:00
parent 7ce8cd22ad
commit 740077fae3
11 changed files with 57 additions and 155 deletions

View File

@@ -28,15 +28,15 @@ struct component comp_make(struct component_interface *interface);
void comp_draw_debug(struct component *c);
void comp_draw_gui(struct component *c);
void comp_delete(struct component *c);
void comp_init(struct component *c);
void comp_io(struct component *c, int read);
void comp_init(struct component *c, struct gameobject *go);
void comp_io(struct component *c, FILE *f, int read);
void comp_update(struct component *c, struct gameobject *go);
void registry_init();
void register_component(const char *name, size_t size,
void (*make)(struct gameobject * go, struct component * c),
void (*make)(struct gameobject * go),
void (*delete)(void *data),
void (*io)(void *data, FILE *f, int read),
void(*draw_debug)(void *data),