RynthCore/Plugins/RynthAi/DecalInspector.cs
BlankenshipG c6e8bb8dbf feat: SK backlog from test through 2026.11.22.48 (Trade Shop + inventory/loot/chat/nav)
Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop Storefront, loot checklist editor, chat routing, window placements, and related engine work. See Changelog/2026-11-22-sk-backlog-test-merge.md.
2026-11-23 00:08:31 -05: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);
}
}
}