Class ImplFinder
Used for finding the implementation for a type that inherits from IImplementation.
This is used to load up a different type implementation depending on whether we are in-game, or in the Unity Editor
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public static class ImplFinder
Methods
| Edit this page View SourceGetImplementationType<T>()
Gets the implementation for a specific type
Declaration
public static Type GetImplementationType<T>() where T : IImplementation
Returns
Type | Description |
---|---|
Type | Returns the implementation for the type |
Type Parameters
Name | Description |
---|---|
T | The type to get the implementation for |
Exceptions
Type | Condition |
---|---|
Exception | Throws if an implemention for the type doesn't exist |
GetImplementation<T>()
Gets an instance of the implementation for a specific type
Declaration
public static T GetImplementation<T>() where T : IImplementation
Returns
Type | Description |
---|---|
T | Returns the implementation for the type |
Type Parameters
Name | Description |
---|---|
T | The type to get the implementation for |