Removes unused forward declarations of class and struct.
[0ad.git] / source / graphics / SkeletonAnimManager.h
blob26bbb18232eb363e903381e54493602955950afd
1 /* Copyright (C) 2021 Wildfire Games.
2 * This file is part of 0 A.D.
4 * 0 A.D. is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * 0 A.D. is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
19 * Owner of all skeleton animations
22 #ifndef INCLUDED_SKELETONANIMMANAGER
23 #define INCLUDED_SKELETONANIMMANAGER
25 #include "lib/file/vfs/vfs_path.h"
27 #include <memory>
28 #include <unordered_map>
30 class CColladaManager;
31 class CSkeletonAnimDef;
33 ///////////////////////////////////////////////////////////////////////////////
34 // CSkeletonAnimManager : owner class of all skeleton anims - manages creation,
35 // loading and destruction of animation data
36 class CSkeletonAnimManager
38 NONCOPYABLE(CSkeletonAnimManager);
39 public:
40 // constructor, destructor
41 CSkeletonAnimManager(CColladaManager& colladaManager);
42 ~CSkeletonAnimManager();
44 // return a given animation by filename; return null if filename doesn't
45 // refer to valid animation file
46 CSkeletonAnimDef* GetAnimation(const VfsPath& pathname);
48 private:
49 // map of all known animations. Value is NULL if it failed to load.
50 std::unordered_map<VfsPath, std::unique_ptr<CSkeletonAnimDef>> m_Animations;
52 CColladaManager& m_ColladaManager;
55 #endif