@@ -25,6 +25,10 @@ namespace lcf {
2525namespace rpg {
2626 class Terms {
2727 public:
28+ // Sentinel name used to denote that the default hardcoded term should be used.
29+ static constexpr const char * kDefaultTerm = " default_term" ;
30+
31+ static std::string TermOrDefault (const DBString& db_term, StringView default_term);
2832 DBString encounter;
2933 DBString special_combat;
3034 DBString escape_success;
@@ -152,6 +156,24 @@ namespace rpg {
152156 DBString exit_game_message;
153157 DBString yes;
154158 DBString no;
159+ DBString easyrpg_item_number_separator = DBString(kDefaultTerm );
160+ DBString easyrpg_skill_cost_separator = DBString(kDefaultTerm );
161+ DBString easyrpg_equipment_arrow = DBString(kDefaultTerm );
162+ DBString easyrpg_status_scene_name = DBString(kDefaultTerm );
163+ DBString easyrpg_status_scene_class = DBString(kDefaultTerm );
164+ DBString easyrpg_status_scene_title = DBString(kDefaultTerm );
165+ DBString easyrpg_status_scene_condition = DBString(kDefaultTerm );
166+ DBString easyrpg_status_scene_front = DBString(kDefaultTerm );
167+ DBString easyrpg_status_scene_back = DBString(kDefaultTerm );
168+ DBString easyrpg_order_scene_confirm = DBString(kDefaultTerm );
169+ DBString easyrpg_order_scene_redo = DBString(kDefaultTerm );
170+ DBString easyrpg_battle2k3_double_attack = DBString(kDefaultTerm );
171+ DBString easyrpg_battle2k3_defend = DBString(kDefaultTerm );
172+ DBString easyrpg_battle2k3_observe = DBString(kDefaultTerm );
173+ DBString easyrpg_battle2k3_charge = DBString(kDefaultTerm );
174+ DBString easyrpg_battle2k3_selfdestruct = DBString(kDefaultTerm );
175+ DBString easyrpg_battle2k3_escape = DBString(kDefaultTerm );
176+ DBString easyrpg_battle2k3_special_combat_back;
155177 };
156178
157179 inline bool operator ==(const Terms& l, const Terms& r) {
@@ -281,7 +303,25 @@ namespace rpg {
281303 && l.file == r.file
282304 && l.exit_game_message == r.exit_game_message
283305 && l.yes == r.yes
284- && l.no == r.no ;
306+ && l.no == r.no
307+ && l.easyrpg_item_number_separator == r.easyrpg_item_number_separator
308+ && l.easyrpg_skill_cost_separator == r.easyrpg_skill_cost_separator
309+ && l.easyrpg_equipment_arrow == r.easyrpg_equipment_arrow
310+ && l.easyrpg_status_scene_name == r.easyrpg_status_scene_name
311+ && l.easyrpg_status_scene_class == r.easyrpg_status_scene_class
312+ && l.easyrpg_status_scene_title == r.easyrpg_status_scene_title
313+ && l.easyrpg_status_scene_condition == r.easyrpg_status_scene_condition
314+ && l.easyrpg_status_scene_front == r.easyrpg_status_scene_front
315+ && l.easyrpg_status_scene_back == r.easyrpg_status_scene_back
316+ && l.easyrpg_order_scene_confirm == r.easyrpg_order_scene_confirm
317+ && l.easyrpg_order_scene_redo == r.easyrpg_order_scene_redo
318+ && l.easyrpg_battle2k3_double_attack == r.easyrpg_battle2k3_double_attack
319+ && l.easyrpg_battle2k3_defend == r.easyrpg_battle2k3_defend
320+ && l.easyrpg_battle2k3_observe == r.easyrpg_battle2k3_observe
321+ && l.easyrpg_battle2k3_charge == r.easyrpg_battle2k3_charge
322+ && l.easyrpg_battle2k3_selfdestruct == r.easyrpg_battle2k3_selfdestruct
323+ && l.easyrpg_battle2k3_escape == r.easyrpg_battle2k3_escape
324+ && l.easyrpg_battle2k3_special_combat_back == r.easyrpg_battle2k3_special_combat_back ;
285325 }
286326
287327 inline bool operator !=(const Terms& l, const Terms& r) {
@@ -546,6 +586,42 @@ namespace rpg {
546586 f (obj.yes , ctx126);
547587 const auto ctx127 = Context<Terms, ParentCtx>{ " no" , -1 , &obj, parent_ctx };
548588 f (obj.no , ctx127);
589+ const auto ctx128 = Context<Terms, ParentCtx>{ " easyrpg_item_number_separator" , -1 , &obj, parent_ctx };
590+ f (obj.easyrpg_item_number_separator , ctx128);
591+ const auto ctx129 = Context<Terms, ParentCtx>{ " easyrpg_skill_cost_separator" , -1 , &obj, parent_ctx };
592+ f (obj.easyrpg_skill_cost_separator , ctx129);
593+ const auto ctx130 = Context<Terms, ParentCtx>{ " easyrpg_equipment_arrow" , -1 , &obj, parent_ctx };
594+ f (obj.easyrpg_equipment_arrow , ctx130);
595+ const auto ctx131 = Context<Terms, ParentCtx>{ " easyrpg_status_scene_name" , -1 , &obj, parent_ctx };
596+ f (obj.easyrpg_status_scene_name , ctx131);
597+ const auto ctx132 = Context<Terms, ParentCtx>{ " easyrpg_status_scene_class" , -1 , &obj, parent_ctx };
598+ f (obj.easyrpg_status_scene_class , ctx132);
599+ const auto ctx133 = Context<Terms, ParentCtx>{ " easyrpg_status_scene_title" , -1 , &obj, parent_ctx };
600+ f (obj.easyrpg_status_scene_title , ctx133);
601+ const auto ctx134 = Context<Terms, ParentCtx>{ " easyrpg_status_scene_condition" , -1 , &obj, parent_ctx };
602+ f (obj.easyrpg_status_scene_condition , ctx134);
603+ const auto ctx135 = Context<Terms, ParentCtx>{ " easyrpg_status_scene_front" , -1 , &obj, parent_ctx };
604+ f (obj.easyrpg_status_scene_front , ctx135);
605+ const auto ctx136 = Context<Terms, ParentCtx>{ " easyrpg_status_scene_back" , -1 , &obj, parent_ctx };
606+ f (obj.easyrpg_status_scene_back , ctx136);
607+ const auto ctx137 = Context<Terms, ParentCtx>{ " easyrpg_order_scene_confirm" , -1 , &obj, parent_ctx };
608+ f (obj.easyrpg_order_scene_confirm , ctx137);
609+ const auto ctx138 = Context<Terms, ParentCtx>{ " easyrpg_order_scene_redo" , -1 , &obj, parent_ctx };
610+ f (obj.easyrpg_order_scene_redo , ctx138);
611+ const auto ctx139 = Context<Terms, ParentCtx>{ " easyrpg_battle2k3_double_attack" , -1 , &obj, parent_ctx };
612+ f (obj.easyrpg_battle2k3_double_attack , ctx139);
613+ const auto ctx140 = Context<Terms, ParentCtx>{ " easyrpg_battle2k3_defend" , -1 , &obj, parent_ctx };
614+ f (obj.easyrpg_battle2k3_defend , ctx140);
615+ const auto ctx141 = Context<Terms, ParentCtx>{ " easyrpg_battle2k3_observe" , -1 , &obj, parent_ctx };
616+ f (obj.easyrpg_battle2k3_observe , ctx141);
617+ const auto ctx142 = Context<Terms, ParentCtx>{ " easyrpg_battle2k3_charge" , -1 , &obj, parent_ctx };
618+ f (obj.easyrpg_battle2k3_charge , ctx142);
619+ const auto ctx143 = Context<Terms, ParentCtx>{ " easyrpg_battle2k3_selfdestruct" , -1 , &obj, parent_ctx };
620+ f (obj.easyrpg_battle2k3_selfdestruct , ctx143);
621+ const auto ctx144 = Context<Terms, ParentCtx>{ " easyrpg_battle2k3_escape" , -1 , &obj, parent_ctx };
622+ f (obj.easyrpg_battle2k3_escape , ctx144);
623+ const auto ctx145 = Context<Terms, ParentCtx>{ " easyrpg_battle2k3_special_combat_back" , -1 , &obj, parent_ctx };
624+ f (obj.easyrpg_battle2k3_special_combat_back , ctx145);
549625 (void )obj;
550626 (void )f;
551627 (void )parent_ctx;
0 commit comments