JKSV/source/system/ProgressTask.cpp
2025-02-21 13:31:40 -05:00

23 lines
363 B
C++

#include "system/ProgressTask.hpp"
void sys::ProgressTask::reset(double goal)
{
m_current = 0;
m_goal = goal;
}
void sys::ProgressTask::update_current(double current)
{
m_current = current;
}
double sys::ProgressTask::get_goal(void) const
{
return m_goal;
}
double sys::ProgressTask::get_current(void) const
{
return m_current / m_goal;
}