forked from metin2/client
Solution refactoring and restructuring, removed Boost dependency, removed unused tools
This commit is contained in:
49
src/EterGrnLib/Thing.h
Normal file
49
src/EterGrnLib/Thing.h
Normal file
@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Model.h"
|
||||
#include "Motion.h"
|
||||
|
||||
class CGraphicThing : public CResource
|
||||
{
|
||||
public:
|
||||
typedef CRef<CGraphicThing> TRef;
|
||||
|
||||
public:
|
||||
static CGraphicThing::TType Type();
|
||||
|
||||
public:
|
||||
CGraphicThing(const char * c_szFileName);
|
||||
virtual ~CGraphicThing();
|
||||
|
||||
virtual bool CreateDeviceObjects();
|
||||
virtual void DestroyDeviceObjects();
|
||||
|
||||
bool CheckModelIndex(int iModel) const;
|
||||
CGrannyModel * GetModelPointer(int iModel);
|
||||
int GetModelCount() const;
|
||||
|
||||
bool CheckMotionIndex(int iMotion) const;
|
||||
CGrannyMotion * GetMotionPointer(int iMotion);
|
||||
int GetMotionCount() const;
|
||||
|
||||
protected:
|
||||
void Initialize();
|
||||
|
||||
bool LoadModels();
|
||||
bool LoadMotions();
|
||||
|
||||
protected:
|
||||
bool OnLoad(int iSize, const void* c_pvBuf);
|
||||
void OnClear();
|
||||
bool OnIsEmpty() const;
|
||||
bool OnIsType(TType type);
|
||||
|
||||
protected:
|
||||
granny_file * m_pgrnFile;
|
||||
granny_file_info * m_pgrnFileInfo;
|
||||
|
||||
granny_animation * m_pgrnAni;
|
||||
|
||||
CGrannyModel * m_models;
|
||||
CGrannyMotion * m_motions;
|
||||
};
|
Reference in New Issue
Block a user