liblcf
Loading...
Searching...
No Matches
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
17#include <stdint.h>
18#include <string>
19#include "enum_tags.h"
20
24namespace RPG {
26 public:
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
static constexpr auto kVehicleTypeTags
Definition: rpg_actor.h:26
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98