1 /*!
2 	@file
3 	@author		Albert Semenov
4 	@date		07/2012
5 */
6 
7 #ifndef _54864042_de71_4232_9301_bc7ffdf3357a_
8 #define _54864042_de71_4232_9301_bc7ffdf3357a_
9 
10 #include <MyGUI.h>
11 
12 namespace tools
13 {
14 
15 	class AnimationInfo
16 	{
17 	public:
18 		AnimationInfo();
19 
20 		const std::string& getTextureName() const;
21 		void setTextureName(const std::string& _value);
22 
23 		const MyGUI::IntSize& getSize() const;
24 		void setSize(const MyGUI::IntSize& _value);
25 
26 		float getRate() const;
27 		void setRate(float _value);
28 
29 		typedef std::pair<MyGUI::IntPoint, size_t> PairFrame;
30 		typedef std::vector<PairFrame> VectorFrame;
31 		const VectorFrame& getFrames() const;
32 		void addFrame(const MyGUI::IntPoint& _frame, size_t _count);
33 		void clearFrames();
34 
35 	private:
36 		std::string mAnimationName;
37 		MyGUI::IntSize mSize;
38 		float mRate;
39 		VectorFrame mFrames;
40 	};
41 
42 }
43 
44 #endif
45