Interface IFunctionalityProvider
Provides functionality for an IFunctionalitySubscriber By requiring that the provider template in IFunctionalitySubscriber inherit IFunctionalityProvider, we allow discovery and enumeration of providers. This is not required for Functionality injection to work, but allows us to distinguish providers from other types
Namespace: Unity.Labs.ModuleLoader
Syntax
public interface IFunctionalityProvider
Methods
ConnectSubscriber(Object)
Called by the FunctionalityInjectionModule
when injecting functionality on an object
Declaration
void ConnectSubscriber(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object onto which functionality is being injected. If this implements a subscriber interface that subscribes to functionality provided by this object, it will set itself as the provider |
LoadProvider()
Called when the provider is loaded into the FunctionalityInjectionModule
Declaration
void LoadProvider()
UnloadProvider()
Called when the provider is unloaded into the FunctionalityInjectionModule
Declaration
void UnloadProvider()