blob: 34bab031fe7aaee982325cfc31ef8d04435eb512 (
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
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
|
#ifndef SETTINGS_H
#define SETTINGS_H
/*
* SettingsCache - A Structure for storing lua settings during play to
* avoid the overhead of fetching from lua repeatedly. Values should be
* considered and const as they are never written back out to lua.
*/
typedef struct SettingsCache {
int use_stencil;
int show_scores;
int show_ai_status;
int ai_level;
int show_fps;
int show_console;
int softwareRendering;
int show_floor_texture;
int line_spacing;
int antialias_lines;
int show_decals;
int alpha_trails;
int turn_cycle;
int light_cycles;
int lod;
float fov;
int stretch_textures;
int show_skybox;
int show_recognizer;
int show_impact;
int show_glow;
int show_wall;
int fast_finish;
int playMusic;
int playEffects;
int camType;
float znear;
float clear_color[4];
float map_ratio_w, map_ratio_h;
} SettingsCache;
extern int isSetting(const char *name);
extern float getSettingf(const char *name);
extern int getSettingi(const char *name);
extern float getVideoSettingf(const char *name);
extern int getVideoSettingi(const char *name);
extern void setSettingf(const char *name, float f);
extern void setSettingi(const char *name, int i);
#endif
|