Revisions, SVI import fix.

This commit is contained in:
J-D-K
2025-08-16 18:58:32 -04:00
parent 6054a3a1f6
commit 1caec25d2a
105 changed files with 1112 additions and 902 deletions

View File

@@ -1,7 +1,7 @@
#include "appstates/FadeState.hpp"
#include "StateManager.hpp"
#include "logger.hpp"
#include "logging/logger.hpp"
#include "mathutil.hpp"
#include "sdl.hpp"
@@ -22,24 +22,6 @@ FadeState::FadeState(sdl::Color baseColor, uint8_t startAlpha, uint8_t endAlpha,
m_fadeTimer.start(TICKS_TIMER_TRIGGER);
}
std::shared_ptr<FadeState> FadeState::create(sdl::Color baseColor,
uint8_t startAlpha,
uint8_t endAlpha,
std::shared_ptr<BaseState> nextState)
{
return std::make_shared<FadeState>(baseColor, startAlpha, endAlpha, nextState);
}
std::shared_ptr<FadeState> FadeState::create_and_push(sdl::Color baseColor,
uint8_t startAlpha,
uint8_t endAlpha,
std::shared_ptr<BaseState> nextState)
{
auto newState = std::make_shared<FadeState>(baseColor, startAlpha, endAlpha, nextState);
StateManager::push_state(newState);
return newState;
}
void FadeState::update()
{
if (m_alpha == m_endAlpha)