void GPC_Engine::UpdateLoadingAnimation(void) { //int delta; float progress = DetermineProgress(); if(progress > m_previousProgress) { // delta = progress - m_previousProgress; m_previousProgress = progress; if(m_previousProgress > 1.0) m_previousProgress = 1.0; // limit to 1.0 (has to change !) // m_engine->m_previousProgress = 0.0; } STR_String to = ""; STR_String from = ""; STR_String subject = "progress"; STR_String body; body.Format("%f", progress); // a number between 0.0 and 1.0 if(m_networkdev) { // Store a progress message in the network device. NG_NetworkMessage* msg = new NG_NetworkMessage(to, from, subject, body); m_networkdev->SendNetworkMessage(msg); msg->Release(); } }
void NG_NetworkScene::SendMessage( const STR_String& to, const STR_String& from, const STR_String& subject, const STR_String& message) { NG_NetworkMessage* msg = new NG_NetworkMessage(to, from, subject, message); m_networkdevice->SendNetworkMessage(msg); msg->Release(); }