bool CMotion::Read(char *line) { m_actionType = OpInt(line, "mType", -1); m_actionTime = OpFloat(line, "mTime", 0.0f); m_progress = OpFloat(line, "mProgress", 0.0f); return false; }
bool CAuto::Read(char *line) { m_type = static_cast<ObjectType>(OpInt(line, "aType", OBJECT_NULL)); m_bBusy = OpInt(line, "aBusy", 0); m_time = OpFloat(line, "aTime", 0.0f); m_progressTime = OpFloat(line, "aProgressTime", 0.0f); m_progressTotal = OpFloat(line, "aProgressTotal", 0.0f); return false; }
bool CAutoDestroyer::Read(char *line) { if ( OpInt(line, "aExist", 0) == 0 ) return false; CAuto::Read(line); m_phase = static_cast< AutoDestroyerPhase >(OpInt(line, "aPhase", ADEP_WAIT)); m_progress = OpFloat(line, "aProgress", 0.0f); m_speed = OpFloat(line, "aSpeed", 1.0f); m_lastParticle = 0.0f; return true; }
bool CAutoFactory::Read(char *line) { if ( OpInt(line, "aExist", 0) == 0 ) return false; CAuto::Read(line); m_phase = static_cast< AutoFactoryPhase >(OpInt(line, "aPhase", AFP_WAIT)); m_progress = OpFloat(line, "aProgress", 0.0f); m_speed = OpFloat(line, "aSpeed", 1.0f); m_lastParticle = 0.0f; m_fretPos = m_object->GetPosition(0); return true; }