Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IServiceInitializer< out TService, in TFirstArgument, in TSecondArgument, in TThirdArgument, in TFourthArgument > Interface Template Reference

Description

Represents an initializer that specifies how a service of type TService should be initialized.

Implemented by initializers of services that depend on four other services and are initialized manually via the InitTarget method.

Template Parameters
TServiceThe concrete type of the initialized service.
TFirstArgumentType of the first service which the initialized service depends on.
TSecondArgumentType of the second service which the initialized service depends on.
TThirdArgumentType of the third service which the initialized service depends on.
TFourthArgumentType of the fourth service which the initialized service depends on.
Inheritance diagram for Sisus.Init.IServiceInitializer< out TService, in TFirstArgument, in TSecondArgument, in TThirdArgument, in TFourthArgument >:
Sisus.Init.IServiceInitializer Sisus.Init.ServiceInitializer< TService, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument >

Public Member Functions

TService InitTarget (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Initializes the service with four other services that it depends on.
 
object IServiceInitializer. InitTarget (params object[] arguments)
 Returns a new instance of the service class, a UnityEngine.Awaitable<T> that returns a new instance of the service class asynchronously, or null.