liblcf
rpg_save.h
Go to the documentation of this file.
1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
5  * https://github.com/EasyRPG/liblcf - https://easyrpg.org
6  *
7  * liblcf is Free/Libre Open Source Software, released under the MIT License.
8  * For the full copyright and license information, please view the COPYING
9  * file that was distributed with this source code.
10  */
11 
12 #ifndef LCF_RPG_SAVE_H
13 #define LCF_RPG_SAVE_H
14 
15 // Headers
16 #include <vector>
17 #include "rpg_saveactor.h"
18 #include "rpg_savecommonevent.h"
19 #include "rpg_saveeasyrpgdata.h"
20 #include "rpg_saveeventexecstate.h"
21 #include "rpg_saveinventory.h"
22 #include "rpg_savemapinfo.h"
23 #include "rpg_savepanorama.h"
24 #include "rpg_savepartylocation.h"
25 #include "rpg_savepicture.h"
26 #include "rpg_savescreen.h"
27 #include "rpg_savesystem.h"
28 #include "rpg_savetarget.h"
29 #include "rpg_savetitle.h"
31 
35 namespace RPG {
36  class Save {
37  public:
38  void Setup();
42  std::vector<SavePicture> pictures;
47  std::vector<SaveActor> actors;
49  std::vector<SaveTarget> targets;
53  std::vector<SaveCommonEvent> common_events;
55  };
56 
57  inline bool operator==(const Save& l, const Save& r) {
58  return l.title == r.title
59  && l.system == r.system
60  && l.screen == r.screen
61  && l.pictures == r.pictures
66  && l.actors == r.actors
67  && l.inventory == r.inventory
68  && l.targets == r.targets
69  && l.map_info == r.map_info
70  && l.panorama == r.panorama
73  && l.easyrpg_data == r.easyrpg_data;
74  }
75 
76  inline bool operator!=(const Save& l, const Save& r) {
77  return !(l == r);
78  }
79 }
80 
81 #endif
rpg_saveeventexecstate.h
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::SaveInventory
Definition: rpg_saveinventory.h:23
RPG::Save::common_events
std::vector< SaveCommonEvent > common_events
Definition: rpg_save.h:53
rpg_savepicture.h
RPG::Save::party_location
SavePartyLocation party_location
Definition: rpg_save.h:43
rpg_saveeasyrpgdata.h
RPG::Save
Definition: rpg_save.h:36
rpg_saveactor.h
RPG::SavePartyLocation
Definition: rpg_savepartylocation.h:24
RPG::Save::targets
std::vector< SaveTarget > targets
Definition: rpg_save.h:49
RPG
Definition: rpg_actor.h:26
rpg_savevehiclelocation.h
RPG::Save::actors
std::vector< SaveActor > actors
Definition: rpg_save.h:47
RPG::SavePanorama
Definition: rpg_savepanorama.h:22
RPG::SaveMapInfo
Definition: rpg_savemapinfo.h:27
RPG::SaveTitle
Definition: rpg_savetitle.h:23
RPG::Save::Setup
void Setup()
Definition: rpg_setup.cpp:133
RPG::Save::system
SaveSystem system
Definition: rpg_save.h:40
RPG::SaveScreen
Definition: rpg_savescreen.h:22
rpg_saveinventory.h
RPG::Save::inventory
SaveInventory inventory
Definition: rpg_save.h:48
RPG::Save::foreground_event_execstate
SaveEventExecState foreground_event_execstate
Definition: rpg_save.h:52
RPG::Save::boat_location
SaveVehicleLocation boat_location
Definition: rpg_save.h:44
rpg_savesystem.h
RPG::SaveSystem
Definition: rpg_savesystem.h:27
rpg_savepartylocation.h
RPG::SaveVehicleLocation
Definition: rpg_savevehiclelocation.h:25
RPG::Save::airship_location
SaveVehicleLocation airship_location
Definition: rpg_save.h:46
RPG::SaveEventExecState
Definition: rpg_saveeventexecstate.h:24
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::SaveEasyRpgData
Definition: rpg_saveeasyrpgdata.h:22
RPG::Save::pictures
std::vector< SavePicture > pictures
Definition: rpg_save.h:42
RPG::Save::map_info
SaveMapInfo map_info
Definition: rpg_save.h:50
RPG::Save::screen
SaveScreen screen
Definition: rpg_save.h:41
rpg_savetitle.h
rpg_savemapinfo.h
rpg_savecommonevent.h
rpg_savepanorama.h
RPG::Save::title
SaveTitle title
Definition: rpg_save.h:39
RPG::Save::easyrpg_data
SaveEasyRpgData easyrpg_data
Definition: rpg_save.h:54
RPG::Save::ship_location
SaveVehicleLocation ship_location
Definition: rpg_save.h:45
rpg_savescreen.h
rpg_savetarget.h
RPG::Save::panorama
SavePanorama panorama
Definition: rpg_save.h:51