diff options
Diffstat (limited to 'src/loader.h')
-rw-r--r-- | src/loader.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/loader.h b/src/loader.h index 61f9e3c..b16fd28 100644 --- a/src/loader.h +++ b/src/loader.h @@ -2,6 +2,7 @@ #include <stddef.h> #include "entity.h" +#include "main.h" typedef char * name_T; @@ -11,8 +12,8 @@ struct blob { }; struct funs { - struct entity *(*newfun)(void); - int (*setfun)(struct entity *const restrict self, char const *const restrict key, char const *const restrict value); + void *(*newfun)(struct entities *entities); + int (*setfun)(void *const restrict self, char const *const restrict key, char const *const restrict value); }; void res_init(void); @@ -30,7 +31,7 @@ void res_free_collision(void); struct blob res_get_collision(name_T const name); void res_free_fun(void); -void res_push_fun(struct entity *(*newfun)(void), int (*setfun)(struct entity *const restrict self, char const *const restrict key, char const *const restrict value), name_T name); +void res_push_fun(void *(*newfun)(struct entities *entities), int (*setfun)(void *const restrict self, char const *const restrict key, char const *const restrict value), name_T name); struct funs res_get_fun(name_T const name); int loadResources(char *filename); |