From dfe499248f1b1236487156b28e4a535d7963fe35 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 27 Aug 2008 15:48:50 +0000 Subject: major commit. game client restructure. not complete, loads of stuff not working, but the structure is there --- src/game/client/components/skins.hpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/game/client/components/skins.hpp (limited to 'src/game/client/components/skins.hpp') diff --git a/src/game/client/components/skins.hpp b/src/game/client/components/skins.hpp new file mode 100644 index 00000000..078fd71d --- /dev/null +++ b/src/game/client/components/skins.hpp @@ -0,0 +1,36 @@ +#include +#include + +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); +}; -- cgit 1.4.1