V-Gears 0
Free Final Fantasy VII engine.
WorldmapFile.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
19
20namespace VGears {
21
25 class WorldmapFile : public Resource{
26
27 public:
28
32 static const String RESOURCE_TYPE;
33
53 Ogre::ResourceManager* creator, const Ogre::String& name,
54 Ogre::ResourceHandle handle, const Ogre::String& group,
55 bool is_manual = false, Ogre::ManualResourceLoader* loader = 0
56 );
57
61 virtual ~WorldmapFile();
62
63 private:
64
68 virtual void loadImpl() override final;
69
73 virtual void unloadImpl() override final;
74 };
75
76 typedef Ogre::SharedPtr<WorldmapFile> MapFilePtr;
77
78}
A resource.
Definition: VGearsResource.h:29
Handles a world map file.
Definition: WorldmapFile.h:25
static const String RESOURCE_TYPE
The type of resource.
Definition: WorldmapFile.h:32
virtual void unloadImpl() override final
Unloads the map file.
Definition: WorldmapFile.cpp:38
WorldmapFile(Ogre::ResourceManager *creator, const Ogre::String &name, Ogre::ResourceHandle handle, const Ogre::String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=0)
Constructor.
Definition: WorldmapFile.cpp:24
virtual void loadImpl() override final
Loads the map file.
Definition: WorldmapFile.cpp:32
virtual ~WorldmapFile()
Destructor.
Definition: WorldmapFile.cpp:30
Definition: FF7NameLookup.h:24
Ogre::SharedPtr< WorldmapFile > MapFilePtr
Definition: WorldmapFile.h:76
Ogre::String String
Definition: TypeDefine.h:37