forked from rofl0r/agsutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataFile.h
44 lines (37 loc) · 798 Bytes
/
DataFile.h
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
#ifndef DATAFILE_H
#define DATAFILE_H
#include "File.h"
#include "Script.h"
typedef struct AgsGameData {
size_t fontcount;
size_t cursorcount;
size_t charactercount;
size_t inventorycount;
size_t viewcount;
size_t dialogcount;
int hasdict;
} AGD;
typedef struct AgsDataFile {
AF f_b;
AF *f;
char* dir;
int version;
size_t globalvarcount;
AGD game;
size_t scriptcount;
size_t scriptstart;
size_t scriptend;
ASI globalscript;
ASI dialogscript;
ASI scripts[50];
} ADF;
void ADF_init(ADF* a, char* dir);
int ADF_open(ADF* a);
void ADF_close(ADF* a);
ASI* ADF_open_objectfile(ADF* a, char* fn);
ASI* ADF_get_script(ADF* a, size_t index);
ASI* ADF_get_global_script(ADF* a);
ASI* ADF_get_dialog_script(ADF* a);
size_t ADF_get_scriptcount(ADF* a);
//RcB: DEP "DataFile.c"
#endif