V-Gears 0
Free Final Fantasy VII engine.
VGearsFLevelBackground2DLoader.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 <OgreResource.h>
21
22namespace VGears{
23
24 class FLevelFile;
25
29 class FLevelBackground2DLoader : public Ogre::ManualResourceLoader{
30
31 public:
32
38 explicit FLevelBackground2DLoader(FLevelFile& flevel_file);
39
44
50 virtual void loadResource(Ogre::Resource *resource);
51
52 protected:
53
55
57
59
61
62 private:
63
68 };
69}
std::vector< Tile > TileList
Definition: VGearsBackground2DFile.h:63
std::vector< SpriteData > SpriteList
Definition: VGearsBackgroundFile.h:229
Handles 2D background loading.
Definition: VGearsFLevelBackground2DLoader.h:29
virtual void loadResource(Ogre::Resource *resource)
Loads a resource.
Definition: VGearsFLevelBackground2DLoader.cpp:28
FLevelBackground2DLoader(FLevelFile &flevel_file)
Constructor.
Definition: VGearsFLevelBackground2DLoader.cpp:23
Background2DFile::TileList TileList
Definition: VGearsFLevelBackground2DLoader.h:54
FLevelFile & flevel_file_
The flevel file.
Definition: VGearsFLevelBackground2DLoader.h:67
virtual ~FLevelBackground2DLoader()
Destructor.
Definition: VGearsFLevelBackground2DLoader.cpp:26
BackgroundFile::Layer Layer
Definition: VGearsFLevelBackground2DLoader.h:56
BackgroundFile::SpriteData SpriteData
Definition: VGearsFLevelBackground2DLoader.h:58
BackgroundFile::SpriteList SpriteList
Definition: VGearsFLevelBackground2DLoader.h:60
A flevel file.
Definition: VGearsFLevelFile.h:43
Definition: FF7NameLookup.h:24
A layer of a background.
Definition: VGearsBackgroundFile.h:241
Data for sprites.
Definition: VGearsBackgroundFile.h:135