2020-05-10 08:04:20 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "SimpleModelInfo.h"
|
2020-10-17 05:23:01 +00:00
|
|
|
#include "WeaponType.h"
|
2020-05-10 08:04:20 +00:00
|
|
|
|
|
|
|
class CWeaponModelInfo : public CSimpleModelInfo
|
|
|
|
{
|
|
|
|
union {
|
|
|
|
int32 m_animFileIndex;
|
|
|
|
char *m_animFileName;
|
|
|
|
};
|
|
|
|
public:
|
|
|
|
CWeaponModelInfo(void) : CSimpleModelInfo(MITYPE_WEAPON) { m_animFileIndex = -1; }
|
|
|
|
|
|
|
|
virtual void SetAnimFile(const char *file);
|
|
|
|
virtual void ConvertAnimFileIndex(void);
|
|
|
|
virtual int GetAnimFileIndex(void) { return m_animFileIndex; }
|
2020-05-15 14:30:25 +00:00
|
|
|
virtual void SetAtomic(int n, RpAtomic *atomic);
|
|
|
|
|
2020-05-10 08:04:20 +00:00
|
|
|
void Init(void);
|
|
|
|
void SetWeaponInfo(int32 weaponId);
|
2020-10-17 05:23:01 +00:00
|
|
|
eWeaponType GetWeaponInfo(void);
|
2020-05-10 08:04:20 +00:00
|
|
|
};
|