public sealed class FunctionProxy : GeneralProxy<Function>
A proxy holding all required information about a certain Function.

Constructors

FunctionProxy

#
public FunctionProxy(Function instance, Plugin plugin)
Create a proxy from an instance.
instance (Function)
plugin (Plugin)

Properties

Icon

public virtual IIcon Icon { get; }
Gets the icon associated with this object.
inherited fromGeneralProxy<T>

Id

public Guid Id { get; }
Gets the ID for this object.
inherited fromGeneralProxy<T>

Nomen

public Nomen Nomen { get; }
Gets the nomen describing this object.
inherited fromGeneralProxy<T>

Obsolete

public bool Obsolete { get; }
Gets whether this proxy represents an obsolete (or otherwise hidden) object.
inherited fromGeneralProxy<T>

Plugin

public Plugin Plugin { get; }
Gets the plugin to which is object belongs.
inherited fromGeneralProxy<T>

SearchableNomen

public Nomen SearchableNomen { get; }
Gets the searchable version of the nomen.
inherited fromGeneralProxy<T>

Type

public Type Type { get; }
Gets the Type of this object.
inherited fromGeneralProxy<T>

Methods

Emit

public virtual T Emit(string initCode = null)
Emit a new instance of this object.
inherited fromGeneralProxy<T>
initCode (string = null)If provided, this initialisation string will be passed to the object. Not all objects support init codes, but if it doesn't, and you supply one anyway, the code will just be ignored.

ExtractIconFromInstance

#
protected override IIcon ExtractIconFromInstance(Function instance)
instance (Function)