diff --git a/Assemblies/0MultiplayerAPI.dll b/Assemblies/0MultiplayerAPI.dll new file mode 100644 index 0000000000000000000000000000000000000000..8e3ebb850866f95dc6896c3c790b3c692b970afb Binary files /dev/null and b/Assemblies/0MultiplayerAPI.dll differ diff --git a/Source/Modules/Multiplayer/Multiplayer.cs b/Source/Modules/Multiplayer/Multiplayer.cs new file mode 100644 index 0000000000000000000000000000000000000000..8e16f001f55f14635981dd56706917dc8d768b93 --- /dev/null +++ b/Source/Modules/Multiplayer/Multiplayer.cs @@ -0,0 +1,39 @@ +using Multiplayer.API; +using Verse; +using Harmony; + +namespace rjw +{ + [StaticConstructorOnStartup] + public static class RJW_Multiplayer + { + static RJW_Multiplayer() + { + if (!MP.enabled) return; + + // This is where the magic happens and your attributes + // auto register, similar to Harmony's PatchAll. + MP.RegisterAll(); + + var type = AccessTools.TypeByName("rjw.RJWdesignations"); + + Log.Message("rjw MP compat " + type.Name); + //MP.RegisterSyncMethod(type, "Comfort"); + /* + MP.RegisterSyncMethod(type, "<GetGizmos>Service"); + MP.RegisterSyncMethod(type, "<GetGizmos>BreedingHuman"); + MP.RegisterSyncMethod(type, "<GetGizmos>BreedingAnimal"); + MP.RegisterSyncMethod(type, "<GetGizmos>Breeder"); + MP.RegisterSyncMethod(type, "<GetGizmos>Milking"); + MP.RegisterSyncMethod(type, "<GetGizmos>Hero"); + */ + + + // You can choose to not auto register and do it manually + // with the MP.Register* methods. + + // Use MP.IsInMultiplayer to act upon it in other places + // user can have it enabled and not be in session + } + } +} \ No newline at end of file