Initial commit
This commit is contained in:
commit
c4a24c9fdf
142 changed files with 15491 additions and 0 deletions
24
check_delay.cs
Normal file
24
check_delay.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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_publicized.dll";
|
||||
if (!System.IO.File.Exists(asmPath)) {
|
||||
asmPath = "c:\\Users\\FERDINANDO\\Desktop\\JotunnModStub-master\\RacesOfValheim\\JotunnModStub\\bin\\Debug\\net48\\assembly_valheim.dll";
|
||||
}
|
||||
|
||||
Assembly asm;
|
||||
try { asm = Assembly.LoadFrom(asmPath); }
|
||||
catch (Exception e) { Console.WriteLine(e.Message); return; }
|
||||
|
||||
Type playerType = asm.GetTypes().FirstOrDefault(t => t.Name == "Player");
|
||||
if (playerType == null) { Console.WriteLine("Player not found"); return; }
|
||||
|
||||
foreach (var f in playerType.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance).Where(x => x.Name.ToLower().Contains("delay") || x.Name.ToLower().Contains("eitr")))
|
||||
Console.WriteLine(f.FieldType.Name + " " + f.Name);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue