Init(args)
Scripting Reference
List of all members | Protected Member Functions | Properties
Sisus.Init.WrapperInitializer< TWrapper, TWrapped, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Class Template Referenceabstract

Description

A base class for a component that can specify the argument used to initialize an object which then gets wrapped by a Wrapper<TWrapped> component.

A base class for a component that can specify the five arguments used to initialize an object which then gets wrapped by a Wrapper<TWrapped> component.

A base class for a component that can specify the four arguments used to initialize an object which then gets wrapped by a Wrapper<TWrapped> component.

A base class for a component that can specify the three arguments used to initialize an object which then gets wrapped by a Wrapper<TWrapped> component.

A base class for a component that can specify the two arguments used to initialize an object which then gets wrapped by a Wrapper<TWrapped> component.

The TWrapped wrapped object gets created and injected to the TWrapper wrapper component during the Awake event.

After the object has been injected the WrapperInitializer<,,> is removed from the GameObject that holds it.

Template Parameters
TWrapperType of the initialized wrapper component.
TWrappedType of the object wrapped by the wrapper.
TArgumentType of the first argument received by the wrapped object.

The TWrapped wrapped object gets created and injected to the TWrapper wrapper component during the Awake event.

After the object has been injected the WrapperInitializer<,,,> is removed from the GameObject that holds it.

Template Parameters
TWrapperType of the initialized wrapper component.
TWrappedType of the object wrapped by the wrapper.
TFirstArgumentType of the first argument received by the wrapped object.
TSecondArgumentType of the second argument received by the wrapped object.

The TWrapped wrapped object gets created and injected to the TWrapper wrapper component during the Awake event.

After the object has been injected the WrapperInitializer<,,,,> is removed from the GameObject that holds it.

Template Parameters
TWrapperType of the initialized wrapper component.
TWrappedType of the object wrapped by the wrapper.
TFirstArgumentType of the first argument received by the wrapped object.
TSecondArgumentType of the second argument received by the wrapped object.
TThirdArgumentType of the third argument received by the wrapped object.

The TWrapped wrapped object gets created and injected to the TWrapper wrapper component during the Awake event.

After the object has been injected the WrapperInitializer<,,,,,> is removed from the GameObject that holds it.

Template Parameters
TWrapperType of the initialized wrapper component.
TWrappedType of the object wrapped by the wrapper.
TFirstArgumentType of the first argument received by the wrapped object.
TSecondArgumentType of the second argument received by the wrapped object.
TThirdArgumentType of the third argument received by the wrapped object.
TFourthArgumentType of the fourth argument received by the wrapped object.

The TWrapped wrapped object gets created and injected to the TWrapper wrapper component during the Awake event.

After the object has been injected the WrapperInitializer<,,,,,,> is removed from the GameObject that holds it.

Template Parameters
TWrapperType of the initialized wrapper component.
TWrappedType of the object wrapped by the wrapper.
TFirstArgumentType of the first argument received by the wrapped object.
TSecondArgumentType of the second argument received by the wrapped object.
TThirdArgumentType of the third argument received by the wrapped object.
TFourthArgumentType of the fourth argument received by the wrapped object.
TFifthArgumentType of the fifth argument received by the wrapped object.
Type Constraints
TWrapper :Wrapper<TWrapped> 
Inheritance diagram for Sisus.Init.WrapperInitializer< TWrapper, TWrapped, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >:
Sisus.Init.IInitializer Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IInitializer Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IInitializer Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IInitializer Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IInitializer Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >

Protected Member Functions

abstract TWrapped CreateWrappedObject (TArgument argument)
 Returns a new instance of TWrapped initializes using the provided arguments. More...
 
virtual void InitWrapper (TWrapped wrappedObject)
 Intializes the target TWrapper with the provided wrappedObject wrapped object. More...
 
abstract TWrapped CreateWrappedObject (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Returns a new instance of TWrapped initializes using the provided arguments. More...
 
virtual void InitWrapper (TWrapped wrappedObject)
 Intializes the target TWrapper with the provided wrappedObject wrapped object. More...
 
abstract TWrapped CreateWrappedObject (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Returns a new instance of TWrapped initializes using the provided arguments. More...
 
virtual void InitWrapper (TWrapped wrappedObject)
 Intializes the target TWrapper with the provided wrappedObject wrapped object. More...
 
abstract TWrapped CreateWrappedObject (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Returns a new instance of TWrapped initializes using the provided arguments. More...
 
virtual void InitWrapper (TWrapped wrappedObject)
 Intializes the target TWrapper with the provided wrappedObject wrapped object. More...
 
abstract TWrapped CreateWrappedObject (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Returns a new instance of TWrapped initializes using the provided arguments. More...
 
virtual void InitWrapper (TWrapped wrappedObject)
 Intializes the target TWrapper with the provided wrappedObject wrapped object. More...
 
- Protected Member Functions inherited from Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >
abstract void Init (TArgument argument)
 Provides the Component with the argument object that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 
abstract void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Provides the Component with the objects that it depends on. More...
 
virtual void OnReset ()
 Reset state to default values. More...
 
virtual void OnAwake ()
 OnAwake is called when the script instance is being loaded during the Awake event after the Init function has finished. More...
 

Properties

Object Target [get]
 Existing target instance to initialize, if any. More...
 
- Properties inherited from Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >
TArgument this[[NotNull] string memberName [set]
 Assigns an argument received during initialization to a field or property by the memberName given name. More...
 
object this[[NotNull] string memberName [set]
 Assigns an argument received during initialization to a field or property by the memberName given name. More...
 
- Properties inherited from Sisus.Init.IInitializer
Object Target [get]
 The existing target instance that is getting initialized, if any. More...
 

Additional Inherited Members

- Public Member Functions inherited from Sisus.Init.IInitializable< TArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...
 
- Public Member Functions inherited from Sisus.Init.IInitializable< TFirstArgument, TSecondArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...
 
- Public Member Functions inherited from Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...
 
- Public Member Functions inherited from Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument >
void Init (TArgument argument)
 Initializes the object with an object that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Initializes the object with two objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Initializes the object with three objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the object with four objects that it depends on. More...
 
void Init (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Initializes the object with five objects that it depends on. More...