⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settings.h

📁 小游戏 linux very happy
💻 H
字号:
#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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -