-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgamecodeincludes.h
More file actions
65 lines (49 loc) · 1.89 KB
/
gamecodeincludes.h
File metadata and controls
65 lines (49 loc) · 1.89 KB
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
#ifndef GAMECODEINCLUDESHEADER
#define GAMECODEINCLUDESHEADER
#define GAMECODEINCLUDEVERSION 1
#define DEFERREDFLAG 1
#define FORWARDFLAG 2
typedef struct ecallheader_s {
//console
int (*console_printf)(const char *fmt, ...);
int (*console_nprintf)(const size_t size, const char *fmt, ...);
//cvar
int (*cvar_register)(cvar_t *c);
int (*cvar_unregister)(const int id);
int (*cvar_findByNameRINT)(char * name);
void (*cvar_nameset)(char * name, const char *value);
void (*cvar_pset)(cvar_t *c, const char *value);
void (*cvar_idset)(const int id, const char *value);
cvar_t * (*cvar_returnById)(const int id);
cvar_t * (*cvar_findByNameRPOINT)(char * name);
//entity
entity_t * (*entity_findByNameRPOINT)(const char *name);
entitylistpoint_t (*entity_findAllByNameRPOINT)(const char *name);
entitylistint_t (*entity_findAllByNameRINT)(const char *name);
entity_t * (* entity_returnById)(const int id);
entity_t * (* entity_addRPOINT)(const char * name);
int (*entity_findByNameRINT)(const char *name);
int (* entity_addRINT)(const char * name);
int (*entity_delete)(const int id); //todo do i want to have a markfordelete in the flags?
//file
int (*file_loadString)(const char * filename, char ** output, int * length, const int debugmode);
int (*file_loadStringNoLength)(const char * filename, char ** output, const int debugmode);
//light
int (*light_addRINT)(const char * name);
light_t * (*light_addRPOINT)(const char * name);
//shader
int (*shader_createAndAddRINT)(const char * name);
//stringlib
unsigned int (*string_toVec)(const char *s, vec_t *c, const unsigned int maxdem);
//texture
int (*texture_createAndAddGroupRINT)(const char * name);
//model
int (*model_createAndAddRINT)(const char * name);
//todo
} ecallheader_t;
typedef struct gcallheader_s {
unsigned int apiver;
int (*initgame)(void);
//todo
} gcallheader_t;
#endif