RynthCore/Plugins/RynthAi/DecalInspector.cs
tombohar 80b71d295d 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.
2026-04-10 18:38:07 -04:00

38 lines
1.1 KiB
C#

using System;
using System.Reflection;
using Decal.Adapter;
using Decal.Adapter.Wrappers;
namespace NexSuite.Plugins.RynthAi
{
public static class DecalInspector
{
public static void DumpType(Type t, CoreManager core)
{
core.Actions.AddChatText("====== " + t.FullName + " ======", 3);
core.Actions.AddChatText("-- PROPERTIES --", 3);
foreach (var p in t.GetProperties())
{
core.Actions.AddChatText(p.PropertyType.Name + " " + p.Name, 3);
}
core.Actions.AddChatText("-- METHODS --", 3);
foreach (var m in t.GetMethods())
{
core.Actions.AddChatText(m.ReturnType.Name + " " + m.Name, 3);
}
}
public static void DumpDecalAPI(CoreManager core)
{
DumpType(typeof(WorldObject), core);
DumpType(typeof(CharacterFilter), core);
DumpType(typeof(CoreManager), core);
// These are the important ones for navigation
DumpType(typeof(HooksWrapper), core);
DumpType(typeof(WorldFilter), core);
}
}
}