Initial commit

A modern .NET 9 NativeAOT framework for Asheron's Call client modding.
Self-contained injection system that hooks D3D9 EndScene to render an
ImGui overlay inside the AC client process.
This commit is contained in:
tombohar 2026-04-10 18:38:07 -04:00
commit 80b71d295d
179 changed files with 52858 additions and 0 deletions

View file

@ -0,0 +1,58 @@
// ============================================================================
// RynthCore.Engine - Plugins/LoadedPlugin.cs
// Represents a single plugin DLL that has been loaded and had its exports
// resolved. Holds the module handle and cached delegates.
// ============================================================================
using System;
namespace RynthCore.Engine.Plugins;
internal sealed class LoadedPlugin
{
public string SourceFilePath { get; init; } = "";
public string FilePath { get; init; } = "";
public string FileName { get; init; } = "";
public IntPtr ModuleHandle { get; init; }
// ─── Required exports ────────────────────────────────────────────
public PluginInitDelegate? Init { get; set; }
public PluginShutdownDelegate? Shutdown { get; set; }
// ─── Optional exports ────────────────────────────────────────────
public PluginNameDelegate? GetName { get; set; }
public PluginVersionDelegate? GetVersion { get; set; }
public PluginOnLoginCompleteDelegate? OnLoginComplete { get; set; }
public PluginOnUIInitializedDelegate? OnUIInitialized { get; set; }
public PluginOnBusyCountIncrementedDelegate? OnBusyCountIncremented { get; set; }
public PluginOnBusyCountDecrementedDelegate? OnBusyCountDecremented { get; set; }
public PluginOnSelectedTargetChangeDelegate? OnSelectedTargetChange { get; set; }
public PluginOnCombatModeChangeDelegate? OnCombatModeChange { get; set; }
public IntPtr OnSmartBoxEventPtr { get; set; }
public PluginOnSmartBoxEventDelegate? OnSmartBoxEvent { get; set; }
public PluginOnDeleteObjectDelegate? OnDeleteObject { get; set; }
public PluginOnCreateObjectDelegate? OnCreateObject { get; set; }
public IntPtr OnUpdateObjectPtr { get; set; }
public PluginOnUpdateObjectDelegate? OnUpdateObject { get; set; }
public PluginOnUpdateObjectInventoryDelegate? OnUpdateObjectInventory { get; set; }
public PluginOnViewObjectContentsDelegate? OnViewObjectContents { get; set; }
public PluginOnStopViewingObjectContentsDelegate? OnStopViewingObjectContents { get; set; }
public IntPtr OnUpdateHealthPtr { get; set; }
public PluginOnUpdateHealthDelegate? OnUpdateHealth { get; set; }
public IntPtr OnChatWindowTextPtr { get; set; }
public PluginOnChatWindowTextDelegate? OnChatWindowText { get; set; }
public PluginOnChatBarEnterDelegate? OnChatBarEnter { get; set; }
public PluginBarActionDelegate? OnBarAction { get; set; }
public PluginOnEnchantmentAddedDelegate? OnEnchantmentAdded { get; set; }
public PluginOnEnchantmentRemovedDelegate? OnEnchantmentRemoved { get; set; }
public PluginTickDelegate? Tick { get; set; }
public PluginRenderDelegate? Render { get; set; }
// ─── Runtime state ───────────────────────────────────────────────
public bool Initialized { get; set; }
public bool LoginCompleteDispatched { get; set; }
public bool UIInitializedDispatched { get; set; }
public bool Failed { get; set; }
public string DisplayName { get; set; } = "";
public string VersionString { get; set; } = "";
}