From 5afcb0c390c3170b752e34c8f96b94e0a54cc15b Mon Sep 17 00:00:00 2001
From: SokyranTheDragon <36712560+SokyranTheDragon@users.noreply.github.com>
Date: Fri, 16 Aug 2024 04:48:14 +0200
Subject: [PATCH] Compat for Vanilla Races Expanded - Insector (#459)
A few methods weren't synced, but should be handled by MP itself due to calling `TryTakeOrderedJob`.
---
Source/Mods/VanillaRacesInsector.cs | 174 ++++++++++++++++++++++++++++
1 file changed, 174 insertions(+)
create mode 100644 Source/Mods/VanillaRacesInsector.cs
diff --git a/Source/Mods/VanillaRacesInsector.cs b/Source/Mods/VanillaRacesInsector.cs
new file mode 100644
index 0000000..58407ef
--- /dev/null
+++ b/Source/Mods/VanillaRacesInsector.cs
@@ -0,0 +1,174 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using HarmonyLib;
+using Multiplayer.API;
+using Verse;
+
+namespace Multiplayer.Compat;
+
+/// Vanilla Races Expanded - Insector by Oskar Potocki, Taranchuk, Sarg
+///
+///
+[MpCompatFor("vanillaracesexpanded.insector")]
+public class VanillaRacesInsector
+{
+ #region Fields
+
+ // GameComponent_Genelines
+ private static AccessTools.FieldRef genelinesInstanceField;
+ private static AccessTools.FieldRef genelinesListField;
+ private static FastInvokeHandler createGenelineMethod;
+ private static FastInvokeHandler addGenelineMethod;
+
+ // Geneline
+ private static AccessTools.FieldRef