From f7fa30101ac9a77e7042dc4f047b2005c3ac84e0 Mon Sep 17 00:00:00 2001 From: Mordred Date: Sat, 5 Jan 2019 14:53:42 +0100 Subject: [PATCH] Added fmt for sendNotice and sendUrgent, have not ported appearances yet --- src/world/Actor/Player.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/world/Actor/Player.h b/src/world/Actor/Player.h index ce12545c..2009e219 100644 --- a/src/world/Actor/Player.h +++ b/src/world/Actor/Player.h @@ -760,8 +760,18 @@ namespace Sapphire::Entity uint8_t getSearchSelectClass() const; void sendNotice( const std::string& message ); + template< typename... Args > + void sendNotice( const std::string& message, const Args&... args ) + { + sendNotice( fmt::format( message, args... ) ); + } void sendUrgent( const std::string& message ); + template< typename... Args > + void sendUrgent( const std::string& message, const Args&... args ) + { + sendUrgent( fmt::format( message, args... ) ); + } void sendDebug( const std::string& message );