From 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 8 Feb 2014 15:09:25 -0800 Subject: Implement AString --- src/map/skill.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/map/skill.hpp') diff --git a/src/map/skill.hpp b/src/map/skill.hpp index 5f29443..e8f36ab 100644 --- a/src/map/skill.hpp +++ b/src/map/skill.hpp @@ -5,7 +5,8 @@ # include "skill-pools.hpp" # include "../strings/fwd.hpp" -# include "../strings/fstring.hpp" +# include "../strings/rstring.hpp" +# include "../strings/astring.hpp" # include "map.hpp" @@ -39,11 +40,11 @@ earray skill_db; struct skill_name_db { SkillID id; // skill id - FString name; // search strings - FString desc; // description that shows up for searches + RString name; // search strings + RString desc; // description that shows up for searches // this makes const char(&)[] not decay into const char * in {} - skill_name_db(SkillID i, FString n, FString d) + skill_name_db(SkillID i, RString n, RString d) : id(i), name(n), desc(d) {} }; @@ -129,7 +130,7 @@ bool skill_pool_is_activated(dumb_ptr sd, SkillID skill); int skill_pool_deactivate(dumb_ptr sd, SkillID skill); // Yield configurable skill name inline -const FString& skill_name(SkillID skill) +const RString& skill_name(SkillID skill) { return skill_lookup_by_id(skill).desc; } -- cgit v1.2.3-70-g09d2