forked from rwmt/Multiplayer-Compatibility
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compat for Small Vehicle Add-ons (rwmt#509)
Only 3 gizmos, nothing major here.
- Loading branch information
1 parent
23be30e
commit 75af97b
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
} | ||
} |