about summary refs log tree commit diff
path: root/src/config.h
blob: b3142772fc94c840466c49fad2b547cd0c6cc930 (plain) (blame)
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
#ifndef BLACKSHADES_CONFIG_H
#define BLACKSHADES_CONFIG_H

#include <stdbool.h>
#include <stdint.h>

struct Level {
	int environment;
	unsigned char evil_weapons;
	unsigned char evil_rarity;
	unsigned char guard_weapon;
	unsigned char guard_reloads;
	int time;
	float difficulty;
};

struct Key {
	int forwards, backwards, left, right;
	int crouch, accelerate, dive;
	int reload, aim, psychic_aim, psychic;
	int switch_view, switch_weapon;
	int skip, pause, slomo, force;
};

struct Config {
	int width;
	int height;
	bool vsync;
	bool blood;

	bool music;

	float mouse_sensitivity;
	struct Key key;

	struct {
		struct Level *ptr;
		size_t len;
	} levels;
	bool debug;
};

#endif // BLACKSHADES_CONFIG_H