Six agents took over OnlineEmotes (emote wheel), OnlineStatsScreen's deeds, VictoryRunPrompt, RevivePlayerMenu, HUD, PauseScreen, Minimap, PreloadManager, ProceduralItemManager, Game::LoadBossRushXml, GameState's loading, the menu loose ends, Manager::StartNewGame, LevelGenerator and Level (Game now derives from Level). Integration: completion_widget.h breaks an include loop, call sites moved to the new APIs. --mute (main.cpp) keeps the mixer running at zero gain. build/isaac reaches the main menu by itself (input skips the intro); under gdb, picking a character calls StartNewGame and stops at Game::Start. 1611 functions taken over, boot path 287/615. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
894 B
C++
34 lines
894 B
C++
#pragma once
|
|
|
|
#include "kage_graphics.h"
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <unordered_map>
|
|
#include <vector>
|
|
|
|
// An image preload.xml lists, and the image once its group is loaded.
|
|
struct PreloadEntry
|
|
{
|
|
std::string path;
|
|
KAGE::Graphics::ImagePtr image;
|
|
};
|
|
|
|
// The images of one preload.xml group, loaded together the first time the group is asked for.
|
|
struct PreloadGroup
|
|
{
|
|
std::vector<PreloadEntry> entries;
|
|
bool isLoaded = false;
|
|
};
|
|
|
|
// Construction, destruction and the group map's insertion (009c6e10) are the defaults.
|
|
// The preloads (Game's PreloadManager): preload.xml's image groups by id, each loaded once into the texture cache and
|
|
// held there for the rest of the game.
|
|
class PreloadManager
|
|
{
|
|
public:
|
|
std::unordered_map<std::string, PreloadGroup> groups;
|
|
|
|
bool xml_load(std::string_view path);
|
|
void group_load(std::string_view name);
|
|
};
|