V-Gears 0
Free Final Fantasy VII engine.
VGearsHRCFileManager.h
Go to the documentation of this file.
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
16#pragma once
17
18#include <OgreResourceManager.h>
19#include "VGearsPrerequisites.h"
20#include "common/TypeDefine.h"
21#include "VGearsHRCFile.h"
22
23namespace VGears{
24
29 public Ogre::ResourceManager, public Ogre::Singleton<HRCFileManager>
30 {
31 public:
32
37
41 virtual ~HRCFileManager();
42
49 virtual void ParseScript(
50 Ogre::DataStreamPtr &stream, const String &group_name
51 );
52
56 static HRCFileManager& GetSingleton();
57
61 static HRCFileManager* GetSingletonPtr();
62
63 protected:
64
82 virtual Ogre::Resource *createImpl(
83 const Ogre::String &name, Ogre::ResourceHandle handle,
84 const Ogre::String &group, bool is_manual,
85 Ogre::ManualResourceLoader *loader,
86 const Ogre::NameValuePairList *create_params
87 ) override final;
88
89 };
90}
91
92
#define _VGearsExport
This file import prerequisites.
Definition: VGearsPrerequisites.h:35
A manager for HRC files.
Definition: VGearsHRCFileManager.h:30
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37