latest state
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <array>
|
||||
|
||||
// Forward declarations for frequently used types
|
||||
class Game;
|
||||
@ -66,6 +67,12 @@ struct StateContext {
|
||||
std::function<void(AppState)> requestFadeTransition; // Generic state fade requests (menu/options/level)
|
||||
// Pointer to the application's StateManager so states can request transitions
|
||||
StateManager* stateManager = nullptr;
|
||||
// Optional explicit per-button coordinates (logical coordinates). When
|
||||
// `menuButtonsExplicit` is true, MenuState will use these centers for
|
||||
// rendering and hit tests. Values are in logical units (LOGICAL_W/H).
|
||||
std::array<float, 4> menuButtonCX{};
|
||||
std::array<float, 4> menuButtonCY{};
|
||||
bool menuButtonsExplicit = false;
|
||||
};
|
||||
|
||||
class State {
|
||||
|
||||
Reference in New Issue
Block a user