Initial commit
This commit is contained in:
commit
c4a24c9fdf
142 changed files with 15491 additions and 0 deletions
25
check_eitr_methods.cs
Normal file
25
check_eitr_methods.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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)) + ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue