Fission FSN
Loading...
Searching...
No Matches
fsC3dAnimationManager.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 4/11/2014 15:05
4*
5* File: fsC3dAnimationManager.h
6*
7* Author: Martin P. King
8*
9* Purpose: Manager to share 3D animation data
10*
11*********************************************************************/
12
13#ifndef fsC3dAnimationManagerhdr
14#define fsC3dAnimationManagerhdr
15
16#include <memory>
17#include <map>
18
19#include <fsCore/fsBaseTypes.h>
20#include <fsCore/fsStr.h>
22
23class fsCResourceName;
25
26class fsC3dAnimationManager : public fsTSingleton<fsC3dAnimationManager>
27{
29
30public:
31
32 void flush();
33
34 std::shared_ptr<fsI3dAnimationData> get(const fsStr& pAnimFileName, const fsStr& pAnimationName);
35
37
38protected:
39
41
42private:
43
44 struct FncMatch
45 {
46 FncMatch(const fsStr& pName) : mName(pName)
47 {
48 }
49
50 fsBool operator()(std::pair<fsStr, std::shared_ptr<fsI3dAnimationData>> pKeyValuePair);
51
52 const fsStr mName;
53 };
54
55 std::map<fsStr, std::shared_ptr<fsI3dAnimationData>> mAnims;
56};
57
58#endif
~fsC3dAnimationManager()
Definition fsC3dAnimationManager.cpp:36
void flush()
Definition fsC3dAnimationManager.cpp:9
std::shared_ptr< fsI3dAnimationData > get(const fsStr &pAnimFileName, const fsStr &pAnimationName)
Definition fsC3dAnimationManager.cpp:14
fsC3dAnimationManager()
Definition fsC3dAnimationManager.cpp:32
Definition fsCResourceName.h:32
Definition fsI3dAnimationData.h:23
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26