QTfrontend/game.cpp
changeset 13846 d012948b1eda
parent 13659 1889e4e95794
child 13991 f791c46b47a4
equal deleted inserted replaced
13845:b56639b52e59 13846:d012948b1eda
   341 
   341 
   342 void HWGame::FromNetChat(const QString & msg)
   342 void HWGame::FromNetChat(const QString & msg)
   343 {
   343 {
   344     QByteArray buf;
   344     QByteArray buf;
   345     HWProto::addStringToBuffer(buf, 's' + msg + "\x20\x20");
   345     HWProto::addStringToBuffer(buf, 's' + msg + "\x20\x20");
       
   346     RawSendIPC(buf);
       
   347 }
       
   348 
       
   349 void HWGame::FromNetWarning(const QString & msg)
       
   350 {
       
   351     QByteArray buf;
       
   352     HWProto::addStringToBuffer(buf, "s\x00" + msg + "\x20\x20");
       
   353     RawSendIPC(buf);
       
   354 }
       
   355 
       
   356 void HWGame::FromNetError(const QString & msg)
       
   357 {
       
   358     QByteArray buf;
       
   359     HWProto::addStringToBuffer(buf, "s\x05" + msg + "\x20\x20");
   346     RawSendIPC(buf);
   360     RawSendIPC(buf);
   347 }
   361 }
   348 
   362 
   349 void HWGame::onClientRead()
   363 void HWGame::onClientRead()
   350 {
   364 {