QTfrontend/game.cpp
changeset 7090 63d09a846444
parent 6952 7f70f37bbf08
child 7130 fcab1fd02bc6
equal deleted inserted replaced
7089:6c7210257945 7090:63d09a846444
   151 
   151 
   152 void HWGame::SendTrainingConfig()
   152 void HWGame::SendTrainingConfig()
   153 {
   153 {
   154     QByteArray traincfg;
   154     QByteArray traincfg;
   155     HWProto::addStringToBuffer(traincfg, "TL");
   155     HWProto::addStringToBuffer(traincfg, "TL");
   156 
   156     HWProto::addStringToBuffer(traincfg, "eseed " + QUuid::createUuid().toString());
   157     HWProto::addStringToBuffer(traincfg, "escript " + training);
   157     HWProto::addStringToBuffer(traincfg, "escript " + training);
   158 
   158 
   159     RawSendIPC(traincfg);
   159     RawSendIPC(traincfg);
   160 }
   160 }
   161 
   161 
   162 void HWGame::SendCampaignConfig()
   162 void HWGame::SendCampaignConfig()
   163 {
   163 {
   164     QByteArray campaigncfg;
   164     QByteArray campaigncfg;
   165     HWProto::addStringToBuffer(campaigncfg, "TL");
   165     HWProto::addStringToBuffer(campaigncfg, "TL");
       
   166     HWProto::addStringToBuffer(campaigncfg, "eseed " + QUuid::createUuid().toString());
   166 
   167 
   167     HWProto::addStringToBuffer(campaigncfg, "escript " + campaign);
   168     HWProto::addStringToBuffer(campaigncfg, "escript " + campaign);
   168 
   169 
   169     RawSendIPC(campaigncfg);
   170     RawSendIPC(campaigncfg);
   170 }
   171 }