Table of Contents

Class QuotaPatch

Namespace
ConfigurableWarning.Patches
Assembly
RedstoneWizard08.ContentLibrary.dll

Quota patches

[HarmonyPatch]
public class QuotaPatch
Inheritance
QuotaPatch
Inherited Members

Methods

Constructor(RoomStatsHolder, SurfaceNetworkHandler, int, int, int)

Patches the days per quota to reflect the set value. This patches the constructor of RoomStatsHolder.

[HarmonyPostfix]
[HarmonyPatch(typeof(RoomStatsHolder), MethodType.Constructor, new Type[] { typeof(SurfaceNetworkHandler), typeof(int), typeof(int), typeof(int) })]
public static void Constructor(RoomStatsHolder __instance, SurfaceNetworkHandler handler, int startMoney, int startQuotaToReachToReach, int daysPerQuota)

Parameters

__instance RoomStatsHolder

The current instance of the RoomStatsHolder.

handler SurfaceNetworkHandler

The current SurfaceNetworkHandler

startMoney int

The starting money

startQuotaToReachToReach int

The starting quota to reach

daysPerQuota int

The original days per quota (constructor arg)

GetDaysPerQuota(RoomStatsHolder, ref int)

Patches the getter for days per quota.

[HarmonyPostfix]
[HarmonyPatch(typeof(RoomStatsHolder), "DaysPerQutoa", MethodType.Getter)]
public static void GetDaysPerQuota(RoomStatsHolder __instance, ref int __result)

Parameters

__instance RoomStatsHolder

The current instance of the RoomStatsHolder.

__result int

The resulting value