00001 #ifndef FRAMEANIMATIONMANAGER_H 00002 #define FRAMEANIMATIONMANAGER_H 00003 00004 #pragma once 00005 00006 #include "CommonStructs.h" 00007 #include "AnimationManager.h" 00008 #include "TextureFrameAnimation.h" 00009 00010 class CFrameAnimationManager : public CAnimationManager 00011 { 00012 00013 public: 00014 CFrameAnimationManager(); 00015 virtual ~CFrameAnimationManager(); 00016 00017 public: 00018 CAnimation *AddResource(TiXmlNode *DataNode, string Filename, UINT ID = 0, string Name = ""); 00019 CAnimation *GetResource(int Index = -1, int ID = -1, string Name = ""); 00020 int RemoveResource(CAnimation *Animation); 00021 00022 virtual int Load(TiXmlNode *DataNode, string Filename); 00023 virtual int Save(TiXmlNode *DataNode, string Filename); 00024 00025 virtual void Destroy(); 00026 }; 00027 00028 #endif