summaryrefslogblamecommitdiffstats
path: root/src/modelinfo/WeaponModelInfo.h
blob: 5c690c2996e6bbc7656f6f838e86a89cead59c75 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                          

                                                        


                                           
  
#pragma once

#include "SimpleModelInfo.h"

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; }
	virtual void SetAtomic(int n, RpAtomic *atomic);
	
	void Init(void);
	void SetWeaponInfo(int32 weaponId);
	int32 GetWeaponInfo(void);
};