AnimationExtractor.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2022 The V-Gears Team
  3. *
  4. * This file is part of V-Gears
  5. *
  6. * V-Gears is free software: you can redistribute it and/or modify it under
  7. * terms of the GNU General Public License as published by the Free Software
  8. * Foundation, version 3.0 (GPLv3) of the License.
  9. *
  10. * V-Gears is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #pragma once
  16. #include <Ogre.h>
  17. #include "EnemyFile.h"
  18. #include "common/File.h"
  19. /**
  20. * Extracts an animation from a file.
  21. *
  22. * @param file[in] The file from which to read the animation data.
  23. * @param skeleton[in|out] Skeleton to add the animation to.
  24. * @param info[in] @todo Understand and document.
  25. * @param skeleton_data[in|out] Information about the skeleton the animation
  26. * animates.
  27. * @param with_weapon[in] Includes the weapon in the animation.
  28. * @todo Add more documentation. It's a battle animation? Acharacter animation?
  29. * An enemy animation?
  30. */
  31. void AnimationExtractor(
  32. File* file, const Ogre::SkeletonPtr& skeleton, const EnemyInfo& info,
  33. Skeleton& skeleton_data, bool with_weapon
  34. );