Class FeaturePatch<TFeature>
- Namespace
- MonkeyLoader.Patching
- Assembly
- MonkeyLoader.dll
Specifies how much a (pre-)patcher affects a particular Feature.
public sealed class FeaturePatch<TFeature> : IFeaturePatch, IEquatable<IFeaturePatch>, IComparable<IFeaturePatch> where TFeature : Feature, new()
Type Parameters
TFeature
The patched game feature.
- Inheritance
-
FeaturePatch<TFeature>
- Implements
- Inherited Members
Constructors
FeaturePatch(PatchCompatibility)
Creates a new feature patch with the given PatchCompatibility.
public FeaturePatch(PatchCompatibility patchCompatibility)
Parameters
patchCompatibility
PatchCompatibilityHow compatible the patch is with others.
Properties
Compatibility
Gets how compatible the patch is with others.
public PatchCompatibility Compatibility { get; }
Property Value
Feature
Gets the affected feature.
public TFeature Feature { get; }
Property Value
- TFeature
Methods
CompareTo(IFeaturePatch)
Compares the impact of this patch to another. Uses AscendingComparer: higher impact first.
public int CompareTo(IFeaturePatch other)
Parameters
other
IFeaturePatch
Returns
Equals(IFeaturePatch)
public bool Equals(IFeaturePatch other)
Parameters
other
IFeaturePatch
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()