Enhance AxoModLoader with terrain icon management

Added functions for caching and retrieving terrain icons, as well as additional API flush functions.
This commit is contained in:
KaDerox
2026-03-30 20:59:49 +02:00
committed by GitHub
parent 08ffb51291
commit 5dc0e46e29

View File

@@ -2,12 +2,17 @@
#include <string>
class Icon;
class IconRegister;
void AxoModLoader_PreInit(const char* modsDir);
void AxoModLoader_MidInit();
bool AxoModLoader_IsTerrainIconQueued(const std::wstring& name);
void AxoModLoader_Init(const char* modsDir);
void AxoModLoader_Tick();
void AxoModLoader_Shutdown();
void AxoModLoader_CacheTerrainIcon(const std::wstring& name, Icon* icon);
Icon* AxoModLoader_GetTerrainIcon(const std::wstring& name);
struct AxoAPITable;
AxoAPITable* AxoAPI_GetTable();
@@ -18,4 +23,8 @@ void AxoAPI_FlushCreativeMenu();
struct AxoRecipeDef;
bool AxoRecipe_CreateFromDef(const AxoRecipeDef& def);
void AxoAPI_FlushRecipeRegistrations();
void AxoAPI_FlushBiomeRegistrations();
void AxoAPI_FlushCropRegistrations();
void AxoAPI_RegisterCropSeedForCreative(int seedItemId, int creativeTab);
int AxoAPI_ResolveItemName(const std::string& name);
int AxoAPI_ResolveBlockName(const std::string& name);