ddnet/src/game/client/components/skins.h

32 lines
566 B
C
Raw Normal View History

2010-05-29 07:25:38 +00:00
#ifndef GAME_CLIENT_COMPONENTS_SKINS_H
#define GAME_CLIENT_COMPONENTS_SKINS_H
#include <base/vmath.h>
#include <base/tl/array.h>
2010-05-29 07:25:38 +00:00
#include <game/client/component.h>
class CSkins : public CComponent
{
public:
// do this better and nicer
struct CSkin
{
int m_OrgTexture;
int m_ColorTexture;
char m_aName[32];
2010-05-29 07:25:38 +00:00
vec3 m_BloodColor;
};
2010-05-29 07:25:38 +00:00
void Init();
vec4 GetColor(int v);
int Num();
const CSkin *Get(int Index);
int Find(const char *pName);
private:
array<CSkin> m_aSkins;
2010-05-29 07:25:38 +00:00
static void SkinScan(const char *pName, int IsDir, void *pUser);
};
#endif