V-Gears 0
Free Final Fantasy VII engine.
TxzFile.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
27 class TxzFile : public Resource{
28
29 public:
30
34 static const String RESOURCE_TYPE;
35
54 TxzFile(
55 Ogre::ResourceManager* creator, const Ogre::String& name,
56 Ogre::ResourceHandle handle, const Ogre::String& group,
57 bool is_manual = false, Ogre::ManualResourceLoader* loader = 0
58 );
59
63 virtual ~TxzFile();
64
65 private:
66
70 virtual void loadImpl() override final;
71
75 virtual void unloadImpl() override final;
76 };
77
78 typedef Ogre::SharedPtr<TxzFile> TxzFilePtr;
79
80}
A resource.
Definition: VGearsResource.h:29
Handles TXZ files.
Definition: TxzFile.h:27
virtual void unloadImpl() override final
Unloads the file.
Definition: TxzFile.cpp:37
TxzFile(Ogre::ResourceManager *creator, const Ogre::String &name, Ogre::ResourceHandle handle, const Ogre::String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=0)
Constructor.
Definition: TxzFile.cpp:23
static const String RESOURCE_TYPE
The resource type.
Definition: TxzFile.h:34
virtual void loadImpl() override final
Loads the file.
Definition: TxzFile.cpp:31
virtual ~TxzFile()
Destructor.
Definition: TxzFile.cpp:29
Definition: FF7NameLookup.h:24
Ogre::SharedPtr< TxzFile > TxzFilePtr
Definition: TxzFile.h:78
Ogre::String String
Definition: TypeDefine.h:37