Add execute mechanic to Vampiric Aura and bump version to 1.3.5
This commit is contained in:
parent
1b37d924a2
commit
c580871a2d
6 changed files with 140 additions and 1 deletions
42
check_messagehud.cs
Normal file
42
check_messagehud.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
try
|
||||
{
|
||||
Assembly valheimAsm = Assembly.LoadFrom(@"c:\Users\FERDINANDO\Desktop\JotunnModStub-master\RacesOfValheim\libraries\assembly_valheim_publicized.dll");
|
||||
if (valheimAsm == null)
|
||||
{
|
||||
// try different path if not in libraries
|
||||
valheimAsm = Assembly.LoadFrom(@"c:\Users\FERDINANDO\Desktop\JotunnModStub-master\RacesOfValheim\JotunnModStub\bin\Debug\net48\assembly_valheim_publicized.dll");
|
||||
}
|
||||
|
||||
Type messageHudType = valheimAsm.GetType("MessageHud");
|
||||
if (messageHudType == null) {
|
||||
Console.WriteLine("Could not find MessageHud type.");
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var m in messageHudType.GetMethods(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static))
|
||||
{
|
||||
if (m.Name.Contains("Message"))
|
||||
{
|
||||
Console.Write(m.Name + "(");
|
||||
var p = m.GetParameters();
|
||||
for (int i = 0; i < p.Length; i++) {
|
||||
Console.Write(p[i].ParameterType.Name);
|
||||
if (i < p.Length - 1) Console.Write(", ");
|
||||
}
|
||||
Console.WriteLine(")");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue