Class StaminaPatch
- Namespace
- ConfigurableWarning.Patches
- Assembly
- RedstoneWizard08.ContentLibrary.dll
Stamina patches
[HarmonyPatch]
public class StaminaPatch
- Inheritance
-
StaminaPatch
- Inherited Members
Methods
Start(ref PlayerController)
Patches the player's stamina when they spawn.
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerController), "Start")]
public static void Start(ref PlayerController __instance)
Parameters
__instance
PlayerControllerThe current instance of the PlayerController.
Update(ref PlayerController)
Patches the player's stamina parameters.
[HarmonyPrefix]
[HarmonyPatch(typeof(PlayerController), "Update")]
public static void Update(ref PlayerController __instance)
Parameters
__instance
PlayerControllerThe current instance of the PlayerController.
UpdatePost(ref PlayerController)
Patches the player controller to reflect stamina settings.
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerController), "Update")]
public static void UpdatePost(ref PlayerController __instance)
Parameters
__instance
PlayerControllerThe current instance of the PlayerController.