liblcf
rpg_savevehiclelocation.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_SAVEVEHICLELOCATION_H
13 #define LCF_RPG_SAVEVEHICLELOCATION_H
14 
15 // Headers
16 #include "rpg_savemapeventbase.h"
17 #include <stdint.h>
18 #include <string>
19 #include "enum_tags.h"
20 
24 namespace RPG {
26  public:
27  enum VehicleType {
32  };
33  static constexpr auto kVehicleTypeTags = makeEnumTags<VehicleType>(
34  "none",
35  "skiff",
36  "ship",
37  "airship"
38  );
39 
40  int32_t vehicle = 0;
41  int32_t remaining_ascent = 0;
42  int32_t remaining_descent = 0;
43  std::string orig_sprite_name;
44  int32_t orig_sprite_id = 0;
45  };
46 
47  inline bool operator==(const SaveVehicleLocation& l, const SaveVehicleLocation& r) {
48  return l.vehicle == r.vehicle
53  }
54 
55  inline bool operator!=(const SaveVehicleLocation& l, const SaveVehicleLocation& r) {
56  return !(l == r);
57  }
58 }
59 
60 #endif
rpg_savemapeventbase.h
RPG::SaveVehicleLocation::VehicleType_none
@ VehicleType_none
Definition: rpg_savevehiclelocation.h:28
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::SaveVehicleLocation::kVehicleTypeTags
static constexpr auto kVehicleTypeTags
Definition: rpg_savevehiclelocation.h:33
RPG::SaveVehicleLocation::VehicleType
VehicleType
Definition: rpg_savevehiclelocation.h:27
RPG
Definition: rpg_actor.h:26
RPG::SaveVehicleLocation::VehicleType_skiff
@ VehicleType_skiff
Definition: rpg_savevehiclelocation.h:29
RPG::SaveVehicleLocation::vehicle
int32_t vehicle
Definition: rpg_savevehiclelocation.h:40
RPG::SaveVehicleLocation::orig_sprite_name
std::string orig_sprite_name
Definition: rpg_savevehiclelocation.h:43
RPG::SaveVehicleLocation::VehicleType_airship
@ VehicleType_airship
Definition: rpg_savevehiclelocation.h:31
RPG::SaveVehicleLocation
Definition: rpg_savevehiclelocation.h:25
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::SaveVehicleLocation::remaining_descent
int32_t remaining_descent
Definition: rpg_savevehiclelocation.h:42
RPG::SaveVehicleLocation::remaining_ascent
int32_t remaining_ascent
Definition: rpg_savevehiclelocation.h:41
RPG::SaveVehicleLocation::VehicleType_ship
@ VehicleType_ship
Definition: rpg_savevehiclelocation.h:30
RPG::SaveMapEventBase
Definition: rpg_savemapeventbase.h:25
enum_tags.h
RPG::SaveVehicleLocation::orig_sprite_id
int32_t orig_sprite_id
Definition: rpg_savevehiclelocation.h:44