VGearsDataPlugin.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 <OgrePlugin.h>
  17. #include "data/VGearsBackgroundFileManager.h"
  18. #include "data/VGearsPaletteFileManager.h"
  19. #include "data/VGearsPFileManager.h"
  20. #include "data/VGearsHRCFileManager.h"
  21. #include "data/VGearsRSDFileManager.h"
  22. #include "data/VGearsTexCodec.h"
  23. namespace VGears {
  24. /**
  25. * Plugin instance for various FFVII Data Formats
  26. */
  27. class DataPlugin : public Ogre::Plugin{
  28. public:
  29. DataPlugin();
  30. /**
  31. * Retrieves the name fo the plugin.
  32. */
  33. const Ogre::String& getName() const;
  34. /**
  35. * Perform the plugin initial installation sequence.
  36. */
  37. void install();
  38. /**
  39. * Perform any tasks the plugin needs on system initialization.
  40. */
  41. void initialise();
  42. /**
  43. * Perform any tasks the plugin needs on system shut down.
  44. */
  45. void shutdown();
  46. /**
  47. * Perform the final plugin uninstallation sequence.
  48. */
  49. void uninstall();
  50. /**
  51. * The plugin name.
  52. */
  53. static const Ogre::String ms_plugin_name;
  54. private:
  55. /**
  56. * The .P file manager.
  57. */
  58. PFileManager *p_manager_;
  59. /**
  60. * The HRC file manager.
  61. */
  62. HRCFileManager *hrc_manager_;
  63. /**
  64. * The RSD file manager.
  65. */
  66. RSDFileManager *rsd_manager_;
  67. /**
  68. * The palette file manager.
  69. */
  70. PaletteFileManager *palette_manager_;
  71. /**
  72. * The background file manager.
  73. */
  74. BackgroundFileManager *background_manager_;
  75. };
  76. }