Delegate PluginInitInjector.InjectParameter
A typed injector for a plugin's Init method. When registered, called for all associated types. If it returns null, the default for the type will be used.
Namespace: IPA.Loader
Assembly: IPA.Loader.dll
Syntax
public delegate object? InjectParameter(object? previous, ParameterInfo param, PluginMetadata meta);
Parameters
Type | Name | Description |
---|---|---|
Nullable<Object> | previous | the previous return value of the function, or null if never called for plugin. |
ParameterInfo | param | the |
PluginMetadata | meta | the PluginMetadata for the plugin being loaded. |
Returns
Type | Description |
---|---|
Nullable<Object> | the value to inject into that parameter. |