liblcf
rpg_saveactor.cpp
Go to the documentation of this file.
1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2021 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 // Headers
13 #include "lcf/rpg/saveactor.h"
14 
15 constexpr const char* lcf::rpg::SaveActor::kEmptyName;
16 namespace lcf {
17 namespace rpg {
18 
19 std::ostream& operator<<(std::ostream& os, const SaveActor& obj) {
20  os << "SaveActor{";
21  os << "name="<< obj.name;
22  os << ", title="<< obj.title;
23  os << ", sprite_name="<< obj.sprite_name;
24  os << ", sprite_id="<< obj.sprite_id;
25  os << ", transparency="<< obj.transparency;
26  os << ", face_name="<< obj.face_name;
27  os << ", face_id="<< obj.face_id;
28  os << ", level="<< obj.level;
29  os << ", exp="<< obj.exp;
30  os << ", hp_mod="<< obj.hp_mod;
31  os << ", sp_mod="<< obj.sp_mod;
32  os << ", attack_mod="<< obj.attack_mod;
33  os << ", defense_mod="<< obj.defense_mod;
34  os << ", spirit_mod="<< obj.spirit_mod;
35  os << ", agility_mod="<< obj.agility_mod;
36  os << ", skills=";
37  for (size_t i = 0; i < obj.skills.size(); ++i) {
38  os << (i == 0 ? "[" : ", ") << obj.skills[i];
39  }
40  os << "]";
41  os << ", equipped=";
42  for (size_t i = 0; i < obj.equipped.size(); ++i) {
43  os << (i == 0 ? "[" : ", ") << obj.equipped[i];
44  }
45  os << "]";
46  os << ", current_hp="<< obj.current_hp;
47  os << ", current_sp="<< obj.current_sp;
48  os << ", battle_commands=";
49  for (size_t i = 0; i < obj.battle_commands.size(); ++i) {
50  os << (i == 0 ? "[" : ", ") << obj.battle_commands[i];
51  }
52  os << "]";
53  os << ", status=";
54  for (size_t i = 0; i < obj.status.size(); ++i) {
55  os << (i == 0 ? "[" : ", ") << obj.status[i];
56  }
57  os << "]";
58  os << ", changed_battle_commands="<< obj.changed_battle_commands;
59  os << ", class_id="<< obj.class_id;
60  os << ", row="<< obj.row;
61  os << ", two_weapon="<< obj.two_weapon;
62  os << ", lock_equipment="<< obj.lock_equipment;
63  os << ", auto_battle="<< obj.auto_battle;
64  os << ", super_guard="<< obj.super_guard;
65  os << ", battler_animation="<< obj.battler_animation;
66  os << "}";
67  return os;
68 }
69 
70 } // namespace rpg
71 } // namespace lcf
std::ostream & operator<<(std::ostream &os, const Actor &obj)
Definition: rpg_actor.cpp:18
Definition: dbarray.cpp:13