Init(args)
Scripting Reference
List of all members | Public Member Functions
Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Interface Template Reference

Description

Represents an object which can be initialized using an argument of type TArgument .

Represents an object which can be initialized using five arguments.

Represents an object which can be initialized using four arguments.

Represents an object which can be initialized using three arguments.

Represents an object which can be initialized using two arguments.

Object-derived classes that implement this interface can be instantiated with an argument using the function. MonoBehaviour-derived classes that implement this interface can be added to a GameObject with an argument using the GameObject.AddComponent function.

These functions can automatically inject the argument using the IInitializable<TArgument>.Init function at the end of the initialization process; after the Awake and OnEnable events but before the Start event.

It is also possible for the object to retrieve the argument at any earlier stage of its initialization process, such as in the constructor or during the Awake event, using InitArgs.TryGet<TArgument>.

See also
MonoBehaviour<TArgument>, ScriptableObject<TArgument>

Object-derived classes that implement this interface can be instantiated with arguments using the function. MonoBehaviour-derived classes that implement this interface can be added to a GameObject with arguments using the GameObject.AddComponent function.

These functions can automatically inject the arguments using the IInitializable<TFirstArgument, TSecondArgument>.Init function at the end of the initialization process; after the Awake and OnEnable events but before the Start event.

It is also possible for the object to retrieve the arguments at any earlier stage of its initialization process, such as in the constructor or during the Awake event, using InitArgs.TryGet<TFirstArgument, TSecondArgument>.

See also
MonoBehaviour<TFirstArgument, TSecondArgument>, ScriptableObject<TFirstArgument, TSecondArgument>
Template Parameters
TFirstArgumentType of the first argument passed to the Init function.
TSecondArgumentType of the second argument passed to the Init function.

Object-derived classes that implement this interface can be instantiated with arguments using the function. MonoBehaviour-derived classes that implement this interface can be added to a GameObject with arguments using the GameObject.AddComponent function.

These functions can automatically inject the arguments using the IInitializable<TFirstArgument, TSecondArgument, TThirdArgument>.Init function at the end of the initialization process; after the Awake and OnEnable events but before the Start event.

It is also possible for the object to retrieve the arguments at any earlier stage of its initialization process, such as in the constructor or during the Awake event, using InitArgs.TryGet<TFirstArgument, TSecondArgument, TThirdArgument>.

See also
MonoBehaviour<TFirstArgument, TSecondArgument, TThirdArgument>, ScriptableObject<TFirstArgument, TSecondArgument, TThirdArgument>
Template Parameters
TFirstArgumentType of the first argument passed to the Init function.
TSecondArgumentType of the second argument passed to the Init function.
TThirdArgumentType of the third argument passed to the Init function.

Object-derived classes that implement this interface can be instantiated with arguments using the function. MonoBehaviour-derived classes that implement this interface can be added to a GameObject with arguments using the GameObject.AddComponent function.

These functions can automatically inject the arguments using the IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument>.Init function at the end of the initialization process; after the Awake and OnEnable events but before the Start event.

It is also possible for the object to retrieve the arguments at any earlier stage of its initialization process, such as in the constructor or during the Awake event, using InitArgs.TryGet<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument>.

See also
MonoBehaviour<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument>, ScriptableObject<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument>
Template Parameters
TFirstArgumentType of the first argument passed to the Init function.
TSecondArgumentType of the second argument passed to the Init function.
TThirdArgumentType of the third argument passed to the Init function.
TFourthArgumentType of the fourth argument passed to the Init function.

Object-derived classes that implement this interface can be instantiated with arguments using the function. MonoBehaviour-derived classes that implement this interface can be added to a GameObject with arguments using the GameObject.AddComponent function.

These functions can automatically inject the arguments using the IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument>.Init function at the end of the initialization process; after the Awake and OnEnable events but before the Start event.

It is also possible for the object to retrieve the arguments at any earlier stage of its initialization process, such as in the constructor or during the Awake event, using InitArgs.TryGet<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument>.

See also
MonoBehaviour<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument>, ScriptableObject<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument>
Template Parameters
TFirstArgumentType of the first argument passed to the Init function.
TSecondArgumentType of the second argument passed to the Init function.
TThirdArgumentType of the third argument passed to the Init function.
TFourthArgumentType of the fourth argument passed to the Init function.
TFifthArgumentType of the fifth argument passed to the Init function.
Inheritance diagram for Sisus.Init.IInitializable< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument >:
Sisus.Init.IArgs< TArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument, TThirdArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > Sisus.Init.IArgs< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.IFifthArgument< TFifthArgument > Sisus.Init.IThirdArgument< TThirdArgument > Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.IFiveArguments Sisus.Init.IFourthArgument< TFourthArgument > Sisus.Init.IThirdArgument< TThirdArgument > Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.IFourArguments Sisus.Init.IThirdArgument< TThirdArgument > Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.IThreeArguments Sisus.Init.ISecondArgument< TSecondArgument > Sisus.Init.IFirstArgument< TFirstArgument > Sisus.Init.ITwoArguments Sisus.Init.IFirstArgument< TArgument > Sisus.Init.IOneArgument Sisus.Init.MonoBehaviour< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.ScriptableObject< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.Initializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.Initializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.Initializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.Initializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.Initializer< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.Updater Sisus.Init.Wrapper< TWrapped > Sisus.Init.WrapperInitializer< TWrapper, TWrapped, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.WrapperInitializer< TWrapper, TWrapped, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.WrapperInitializer< TWrapper, TWrapped, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.WrapperInitializer< TWrapper, TWrapped, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.WrapperInitializer< TWrapper, TWrapped, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > Sisus.Init.ScriptableWrapper< TWrapped >

Public Member Functions

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...