Add comments to states.

This commit is contained in:
J-D-K
2025-10-30 13:34:03 -04:00
parent 17410fd8a9
commit ec2417d068
32 changed files with 226 additions and 34 deletions

View File

@@ -8,6 +8,8 @@ namespace
constexpr int SCREEN_CENTER = 640;
}
// ---- Construction ----
DataLoadingState::DataLoadingState(data::DataContext &context,
DestructFunction destructFunction,
sys::threadpool::JobFunction function,
@@ -20,6 +22,8 @@ DataLoadingState::DataLoadingState(data::DataContext &context,
m_task = std::make_unique<sys::Task>(function, taskData);
}
// ---- Public functions ----
void DataLoadingState::update()
{
BaseTask::update_loading_glyph();
@@ -44,6 +48,8 @@ void DataLoadingState::render()
BaseTask::render_loading_glyph();
}
// ---- Private functions ----
void DataLoadingState::initialize_static_members()
{
if (sm_jksvIcon) { return; }