liblcf
rpg_troop.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/troop.h"
14
15namespace lcf {
16namespace rpg {
17
18std::ostream& operator<<(std::ostream& os, const Troop& obj) {
19 os << "Troop{";
20 os << "name="<< obj.name;
21 os << ", members=";
22 for (size_t i = 0; i < obj.members.size(); ++i) {
23 os << (i == 0 ? "[" : ", ") << obj.members[i];
24 }
25 os << "]";
26 os << ", auto_alignment="<< obj.auto_alignment;
27 os << ", terrain_set=";
28 for (size_t i = 0; i < obj.terrain_set.size(); ++i) {
29 os << (i == 0 ? "[" : ", ") << obj.terrain_set[i];
30 }
31 os << "]";
32 os << ", appear_randomly="<< obj.appear_randomly;
33 os << ", pages=";
34 for (size_t i = 0; i < obj.pages.size(); ++i) {
35 os << (i == 0 ? "[" : ", ") << obj.pages[i];
36 }
37 os << "]";
38 os << "}";
39 return os;
40}
41
42} // namespace rpg
43} // namespace lcf
std::ostream & operator<<(std::ostream &os, const Actor &obj)
Definition: rpg_actor.cpp:18
Definition: dbarray.cpp:13