summary refs log tree commit diff
path: root/src/funsinit.c
blob: 50469c68681c33a1ecc82f4d81ed7d9c7535f9f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "entity.h"
#include "loader.h"
#include "main.h"

void *save_new(struct entities *entities);
int save_property(void *const restrict entity, char const *const restrict property, char const *const restrict value);
void *walker_new(struct entities *entities);
int walker_property(void *const restrict entity, char const *const restrict property, char const *const restrict value);
void *flier_new(struct entities *entities);
int flier_property(void *const restrict entity, char const *const restrict property, char const *const restrict value);

void *warp_new(struct entities *entities);
int warp_property(void *const restrict entity, char const *const restrict property, char const *const restrict value);

void funs_init(void) {
	res_push_fun(save_new, save_property, "save");
	res_push_fun(walker_new, walker_property, "walker");
	res_push_fun(flier_new, flier_property, "flier");
	res_push_fun(warp_new, warp_property, "warp");
}