mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-13 04:55:18 -05:00
Add comments to states.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user