13 #include <format/format.h> 14 #include "../clib/clib_endian.h" 15 #include "../clib/logfacility.h" 16 #include "../plib/systemstate.h" 25 u16 spellnum =
static_cast<u16>( strtoul( spellidstr,
nullptr, 0 ) );
31 std::wstring wstr = L
"";
32 for (
size_t i = 0; wspellidstr[i] != L
'\0'; i++ )
33 wstr += static_cast<const wchar_t>(
cfBEu16( wspellidstr[i] ) );
34 u16 spellnum =
static_cast<u16>( wcstoul( wstr.c_str(),
nullptr, 0 ) );
40 if ( textbuf[0] ==
'I' && textbuf[1] ==
'N' )
44 invoke( client, textbuf + 2 );
54 if ( wtextbuf[0] ==
ctBEu16( L
'I' ) && wtextbuf[1] ==
ctBEu16( L
'N' ) )
60 for (
size_t i = 0; wtextbuf[i] != L
'\0'; i++ )
61 tmp << wcout.narrow( static_cast<wchar_t>(
cfBEu16( wtextbuf[i] ) ),
'?' );
66 invoke( client, wtextbuf + 2 );
bool process_tildecommand(Network::Client *client, const char *textbuf)
void invoke(Network::Client *client, const char *spellidstr)
void do_cast(Network::Client *client, u16 spellid)
#define INFO_PRINT_TRACE(n)