mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-24 22:54:32 +00:00
25 lines
828 B
C++
25 lines
828 B
C++
#pragma once
|
|
#include <cstdint>
|
|
|
|
/// Hosts the .NET CoreCLR runtime inside the game process using the hostfxr API.
|
|
/// Loads WeaveLoader.Core.dll and resolves managed entry point methods.
|
|
namespace DotNetHost
|
|
{
|
|
bool Initialize();
|
|
void Cleanup();
|
|
|
|
void CallManagedInit();
|
|
int CallDiscoverMods(const char* modsPath);
|
|
void CallPreInit();
|
|
void CallInit();
|
|
void CallPostInit();
|
|
void CallTick();
|
|
void CallShutdown();
|
|
int CallItemMineBlock(const void* args, int sizeBytes);
|
|
int CallItemUse(const void* args, int sizeBytes);
|
|
int CallBlockOnPlace(const void* args, int sizeBytes);
|
|
int CallBlockNeighborChanged(const void* args, int sizeBytes);
|
|
int CallBlockTick(const void* args, int sizeBytes);
|
|
void CallEntitySummoned(int entityNumericId, float x, float y, float z);
|
|
}
|