about summary refs log tree commit diff
path: root/src/game/client/components/skins.hpp
blob: 078fd71d940a44dc0d477bc9e25e0a76de2a3937 (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
#include <base/vmath.hpp>
#include <game/client/component.hpp>

class SKINS : public COMPONENT
{
public:
	// do this better and nicer
	typedef struct 
	{
		int org_texture;
		int color_texture;
		char name[31];
		char term[1];
		vec3 blood_color;
	} SKIN;

	SKINS();
	
	void init();
	
	vec4 get_color(int v);
	int num();
	const SKIN *get(int index);
	int find(const char *name);
	
private:
	enum
	{
		MAX_SKINS=256,
	};

	SKIN skins[MAX_SKINS];
	int num_skins;

	static void skinscan(const char *name, int is_dir, void *user);
};