Skip to content

Commit

Permalink
Compat for Small Vehicle Add-ons (rwmt#509)
Browse files Browse the repository at this point in the history
Only 3 gizmos, nothing major here.
  • Loading branch information
SokyranTheDragon authored Feb 10, 2025
1 parent 23be30e commit 75af97b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Source/Mods/SmallVehicleAddons.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using HarmonyLib;
using Multiplayer.API;
using Verse;

namespace Multiplayer.Compat;

/// <summary>Small Vehicle Add-ons by いのしし_3</summary>
/// <see href="https://steamcommunity.com/sharedfiles/filedetails/?id=3420948947"/>
[MpCompatFor("Inoshishi3.SmallVehicleAddons")]
public class SmallVehicleAddons
{
public SmallVehicleAddons(ModContentPack mod)
{
// Quickly add all nearby items to transferables
MP.RegisterSyncMethod(AccessTools.DeclaredMethod("SmallVehicleAddons.CompFastCargo:AddItemsToTheVehicleTransferables"));
// Honk the car horn
MP.RegisterSyncMethod(AccessTools.DeclaredMethod("SmallVehicleAddons.CompHonk:DoHonkHonk"));
// Toggle car lights on/off
MP.RegisterSyncMethod(AccessTools.DeclaredMethod("SmallVehicleAddons.CompLights:ToggleDeployment"));
}
}

0 comments on commit 75af97b

Please sign in to comment.