Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose side_name attribute to Lua API and [modify_side]
- Loading branch information
1 parent
4d8035e
commit 29942ee
Showing
4 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,6 +302,8 @@ class team | |
void set_flag_icon(const std::string& flag_icon) { info_.flag_icon = flag_icon; } | ||
|
||
const std::string& side_name() const { return info_.side_name.empty() ? info_.current_player : info_.side_name.str(); } | ||
t_string side_name_tstr() const { return info_.side_name.empty() ? info_.current_player : info_.side_name; } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
CelticMinstrel
Author
Member
|
||
void set_side_name(const t_string& new_name) {info_.side_name = new_name;} | ||
const std::string& faction() const { return info_.faction; } | ||
const t_string& faction_name() const { return info_.faction_name; } | ||
//Returns true if the hex is shrouded/fogged for this side, or | ||
|
This change breaks build: