mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 21:33:28 +08:00
Finished test version of LabOpt
This commit is contained in:
@@ -17,14 +17,9 @@ public static class Preloader
|
||||
|
||||
public static void Patch(AssemblyDefinition assembly)
|
||||
{
|
||||
AddMemebers(assembly);
|
||||
}
|
||||
|
||||
private static void AddMemebers(AssemblyDefinition assembly)
|
||||
{
|
||||
var gameModule = assembly.MainModule;
|
||||
try
|
||||
{
|
||||
var gameModule = assembly.MainModule;
|
||||
// Add field: int LabComponent.rootLabId;
|
||||
gameModule.GetType("LabComponent").AddFied("rootLabId", gameModule.TypeSystem.Int32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user