Class SubscriptionEventArgs
- Namespace
- Bannerlord.ButterLib.DelayedSubModule
- Assembly
- Bannerlord.ButterLib.dll
A container class for the arguments of the events, that are added to the MBSubModuleBase public and protected method calls.
public class SubscriptionEventArgs : EventArgs
- Inheritance
-
SubscriptionEventArgs
- Inherited Members
Remarks
These Events are injected via Harmony patching of the respective methods with HarmonyLib.HarmonyPatchType.Prefix and HarmonyLib.HarmonyPatchType.Postfix.
Constructors
SubscriptionEventArgs(bool)
Initializes a new instance of the SubscriptionGlobalEventArgs class with the supplied values.
public SubscriptionEventArgs(bool isBase)
Parameters
isBase
boolAn indicator that the underlying virtual implementation of the MBSubModuleBase method was called, not a derived class override.
Properties
IsBase
An indicator that the underlying virtual implementation of the MBSubModuleBase method was called, not a derived class override.
public bool IsBase { get; }
Property Value
- bool
true, if base MBSubModuleBase virtual method was called.
false, if corresponding override method of the derived class specified in Type was called.