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/map.hpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/map/map.hpp') diff --git a/src/map/map.hpp b/src/map/map.hpp index 897c619..092fd80 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -9,7 +9,8 @@ # include # include "../strings/fwd.hpp" -# include "../strings/fstring.hpp" +# include "../strings/rstring.hpp" +# include "../strings/astring.hpp" # include "../strings/vstring.hpp" # include "../io/cxxstdio.hpp" @@ -193,7 +194,7 @@ struct map_session_data : block_list, SessionData // but one should probably be replaced with a ScriptPointer ??? const ScriptBuffer *npc_script, *npc_scriptroot; std::vector npc_stackbuf; - FString npc_str; + RString npc_str; struct { unsigned storage:1; @@ -267,8 +268,8 @@ struct map_session_data : block_list, SessionData // Not anymore! Well, sort of. DMap regm; // can't be DMap because we want predictable .c_str()s - // This could change once FString ensures CoW. - Map regstrm; + // TODO this can change now + Map regstrm; earray sc_data; short sc_count; @@ -302,7 +303,7 @@ struct map_session_data : block_list, SessionData TimeT chat_repeat_reset_due; int chat_lines_in; int chat_total_repeats; - FString chat_lastmsg; + RString chat_lastmsg; tick_t flood_rates[0x220]; TimeT packet_flood_reset_due; @@ -347,7 +348,7 @@ struct npc_data : block_list Option option; short flag; - std::list eventqueuel; + std::list eventqueuel; Timer eventtimer[MAX_EVENTTIMER]; short arenaflag; @@ -414,7 +415,7 @@ public: class npc_data_message : public npc_data { public: - FString message; + RString message; }; constexpr int MOB_XP_BONUS_BASE = 1024; @@ -574,7 +575,7 @@ struct flooritem_data : block_list extern interval_t autosave_time; extern int save_settings; -extern FString motd_txt; +extern AString motd_txt; extern CharName wisp_server_name; -- cgit v1.2.3-60-g2f50