summaryrefslogtreecommitdiff
path: root/src/include/parser.h
blob: 9d9c2c736b6d22b8d62ba7e0d7c7dd37f1aac930 (plain)
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
#ifndef PARSER_H
#define PARSER_H

#include "data_ini.h"

//#define OUT_OF_BOUNDS "out of bounds"
//#define CANNOT_BE_NEGATIVE "cannot be negative"
//#define BAD_VALUE "bad value"

//#define MAX_LEMMTYPES_COUNT 16
//#define MAX_OBJECT_FRAMES 64
//#define MAX_NUMLEMMINGS 100
//#define STEEL_MAX_WIDTH 256
//#define STEEL_MAX_HEIGHT 256

#define ERR_UNKNOWN_KEY 1
#define ERR_NOT_YET_IMPLEMENTED 2
#define ERR_KEY_OUT_OF_RANGE 3
#define ERR_VAL_OUT_OF_RANGE 4
#define ERR_STRING_TOO_LONG 5

enum ini_type { ini_style, ini_levelpack, ini_level };

int loadIni(enum ini_type type, const char *filepath, gameIni_t *ini);

#endif /*PARSER_H*/