summaryrefslogblamecommitdiffstats
path: root/src/modelinfo/WeaponModelInfo.h
blob: 548bf8a6ff41256eedf304d4822f13242a45d15b (plain) (tree)
1
2
3
4


                            
                       












                                                                                          

                                                        

                                           
                                        
  
#pragma once

#include "SimpleModelInfo.h"
#include "WeaponType.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);
	eWeaponType GetWeaponInfo(void);
};