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
__instanceRoomStatsHolderThe current instance of the RoomStatsHolder.
handlerSurfaceNetworkHandlerThe current SurfaceNetworkHandler
startMoneyintThe starting money
startQuotaToReachToReachintThe starting quota to reach
daysPerQuotaintThe 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
__instanceRoomStatsHolderThe current instance of the RoomStatsHolder.
__resultintThe resulting value