TypeModifier<T>

public sealed class TypeModifier<T> : ITypeModifier<T>
Basic implementation of the generic ITypeModifier interface.
TType constraint.

Constructors

TypeModifier

#
public TypeModifier(string name, string info, IIcon icon, Func<Pear<T>, Pear<T>> func)
Create a new type modifier.
name (string)Modifier name.
info (string)Modifier description.
icon (IIcon)Modifier icon.
func (Func<Pear<T>, Pear<T>>)Modifier functionality.

Properties

Icon

#
public IIcon Icon { get; }
Gets the icon associated with this modifier.
Icon

Info

#
public string Info { get; }
Gets information about this modifier.
Info

Name

#
public string Name { get; }
Gets the name of this modifier.
Name

Methods

Modify

#
public IPear Modify(IPear pear)
Modify an actual pear.
pear (IPear)Pear to modify.
Modified pair.
Modify

Modify

#
public Pear<T> Modify(Pear<T> pear)
Modify an actual pear.
pear (Pear<T>)Pear to modify.
Modified pear.
Modify