Class DivingBellPatch
- Namespace
- ConfigurableWarning.Patches
- Assembly
- RedstoneWizard08.ContentLibrary.dll
Diving Bell patches
[HarmonyPatch]
public class DivingBellPatch
- Inheritance
-
DivingBellPatch
- Inherited Members
Methods
CheckForPlayers(DiveBellPlayerDetector, ref ICollection<Player>)
Patches the player checker to allow for all players to not need to be inside.
[HarmonyPostfix]
[HarmonyPatch(typeof(DiveBellPlayerDetector), "CheckForPlayers")]
public static void CheckForPlayers(DiveBellPlayerDetector __instance, ref ICollection<Player> __result)
Parameters
__instance
DiveBellPlayerDetectorThe current instance of the DiveBellPlayerDetector.
__result
ICollection<Player>The players "inside" the diving bell
IsFullyClosed(DivingBellDoor, ref bool)
Patches the diving bell to allow you to leave without your friends.
[HarmonyPostfix]
[HarmonyPatch(typeof(DivingBellDoor), "IsFullyClosed")]
public static void IsFullyClosed(DivingBellDoor __instance, ref bool __result)
Parameters
__instance
DivingBellDoorThe current instance of the DivingBellDoor.
__result
bool
Update(DivingBell)
Patches the diving bell's update function to apply our settings
[HarmonyPostfix]
[HarmonyPatch(typeof(DivingBell), "Update")]
public static void Update(DivingBell __instance)
Parameters
__instance
DivingBellThe current instance of the DivingBell.