summary refs log tree commit diff
path: root/src/funsinit.c
blob: a323b1ad7bf7e5f6f1777c0fb25abbccd8dbe172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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 *pacer_new(struct entities *entities);
int pacer_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(pacer_new, pacer_property, "pacer");
	res_push_fun(warp_new, warp_property, "warp");
}