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
RoomStatsHolderThe current instance of the RoomStatsHolder.
handler
SurfaceNetworkHandlerThe current SurfaceNetworkHandler
startMoney
intThe starting money
startQuotaToReachToReach
intThe starting quota to reach
daysPerQuota
intThe 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
RoomStatsHolderThe current instance of the RoomStatsHolder.
__result
intThe resulting value