RacesOfValheim/check_eitr_methods.cs
2026-07-30 19:00:13 +02:00

25 lines
954 B
C#

using System;
using System.Reflection;
using System.Linq;
class Program
{
static void Main()
{
var asmPath = "c:\\Users\\FERDINANDO\\Desktop\\JotunnModStub-master\\RacesOfValheim\\JotunnModStub\\bin\\Debug\\net48\\assembly_valheim.dll";
if (!System.IO.File.Exists(asmPath)) {
Console.WriteLine("File not found: " + asmPath);
return;
}
Assembly asm = Assembly.LoadFrom(asmPath);
Type playerType = asm.GetType("Player");
if (playerType == null) {
Console.WriteLine("Player type not found");
return;
}
foreach (var m in playerType.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic).Where(x => x.Name.Contains("Eitr") || x.Name.Contains("eitr"))) {
Console.WriteLine(m.Name + "(" + string.Join(", ", m.GetParameters().Select(p => p.ParameterType.Name + " " + p.Name)) + ")");
}
}
}