Refactor game architecture and enhance features
This commit is contained in:
+10
-3
@@ -3,8 +3,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// --- UI / Systems ---
|
||||
|
||||
// Menu UI controller
|
||||
class Menu {
|
||||
private:
|
||||
std::string title;
|
||||
@@ -18,4 +17,12 @@ public:
|
||||
|
||||
int Update();
|
||||
void Draw();
|
||||
};
|
||||
};
|
||||
|
||||
// Settings and lobby routines
|
||||
void ApplyResolution(int width, int height);
|
||||
void ApplyFramerate(int option);
|
||||
void UpdateSettingsState(GameContext& ctx);
|
||||
void DrawSettingsState(const GameContext& ctx, int screenWidth, int screenHeight);
|
||||
void UpdateLobbyState(GameContext& ctx);
|
||||
void DrawLobbyState(const GameContext& ctx, int screenWidth, int screenHeight);
|
||||
|
||||
Reference in New Issue
Block a user