Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.InitArgs Class Reference

Description

Utility class containing methods related to providing and retrieving arguments for objects that implement one of the IArgs interfaces such as MonoBehaviour<TArgument> and ScriptableObject<TArgument>.

Static Public Member Functions

static void Set< TClient, TArgument > (TArgument argument)
 Provides an argument for use with initializing a client of type TClient .
 
static void Set< TClient, TFirstArgument, TSecondArgument > (TFirstArgument firstArgument, TSecondArgument secondArgument)
 Provides two arguments for use with initializing a client of type TClient .
 
static void Set< TClient, TFirstArgument, TSecondArgument, TThirdArgument > (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument)
 Provides three arguments for use with initializing a client of type TClient .
 
static void Set< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument)
 Provides four arguments for use with initializing a client of type TClient .
 
static void Set< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
 Provides five arguments for use with initializing a client of type TClient .
 
static void Set< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > (TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument)
 Provides six arguments for use with initializing a client of type TClient .
 
static bool TryGet< TClient, TArgument > (Context context, [DisallowNull] TClient client, out TArgument argument)
 Retrieves initialization argument that has been provided for the client.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument, out TSixthArgument sixthArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument, out TSixthArgument sixthArgument, out TSeventhArgument seventhArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument, out TSixthArgument sixthArgument, out TSeventhArgument seventhArgument, out TEighthArgument eighthArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument, out TSixthArgument sixthArgument, out TSeventhArgument seventhArgument, out TEighthArgument eighthArgument, out TNinthArgument ninthArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument, out TSixthArgument sixthArgument, out TSeventhArgument seventhArgument, out TEighthArgument eighthArgument, out TNinthArgument ninthArgument, out TTenthArgument tenthArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument, out TSixthArgument sixthArgument, out TSeventhArgument seventhArgument, out TEighthArgument eighthArgument, out TNinthArgument ninthArgument, out TTenthArgument tenthArgument, out TEleventhArgument eleventhArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument> function.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument > (Context context, [DisallowNull] TClient client, out TFirstArgument firstArgument, out TSecondArgument secondArgument, out TThirdArgument thirdArgument, out TFourthArgument fourthArgument, out TFifthArgument fifthArgument, out TSixthArgument sixthArgument, out TSeventhArgument seventhArgument, out TEighthArgument eighthArgument, out TNinthArgument ninthArgument, out TTenthArgument tenthArgument, out TEleventhArgument eleventhArgument, out TTwelfthArgument twelfthArgument)
 Retrieves arguments provided for the client object using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument> function.
 
static bool TryGet< TClient, TArgument > (TClient client, Context context=Context.MainThread)
 Acquire the service that the depends on and pass it to its IInitializable<TArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument > (TClient client, Context context=Context.MainThread)
 Acquire the two services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the three services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the four services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the five services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the six services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the seven services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the eight services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the nine services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the ten services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the eleven services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument>.Init method.
 
static bool TryGet< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument > (this TClient client, Context context=Context.MainThread)
 Acquire the twelve services that the depends on and pass them to its IInitializable<TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument, TSeventhArgument, TEighthArgument, TNinthArgument, TTenthArgument, TEleventhArgument, TTwelfthArgument>.Init method.
 
static bool Clear< TClient, TArgument > ()
 Clears argument provided for client of type TClient using the Set<TClient, TArgument> function and returns a value indicating if the argument was not received by the client.
 
static bool Clear< TClient, TFirstArgument, TSecondArgument > ()
 Clears arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument> function and returns a value indicating if the arguments were not received by the client.
 
static bool Clear< TClient, TFirstArgument, TSecondArgument, TThirdArgument > ()
 Clears arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument> function and returns a value indicating if the arguments were not received by the client.
 
static bool Clear< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ()
 Clears arguments previously provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument> function and returns a value indicating if the arguments were not received by the client.
 
static bool Clear< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ()
 Clears arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument> function and returns a value indicating if the arguments were not received by the client.
 
static bool Clear< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > ()
 Clears arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument> function and returns a value indicating if the arguments were not received by the client.
 
static bool Clear< TArgument > ([DisallowNull] Type clientType)
 Clears dependency previously injected for client of type clientType using the Set<TClient, TArgument> function.
 
static bool Clear< TFirstArgument, TSecondArgument > ([DisallowNull] Type clientType)
 Clears dependencies previously injected for client of type clientType using the Set<TClient, TFirstArgument, TSecondArgument> function.
 
static bool Clear< TFirstArgument, TSecondArgument, TThirdArgument > ([DisallowNull] Type clientType)
 Clears dependencies previously injected for client of type clientType using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument> function.
 
static bool Clear< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > ([DisallowNull] Type clientType)
 Clears dependencies previously injected for client of type clientType using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument> function.
 
static bool Clear< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > ([DisallowNull] Type clientType)
 Clears dependencies previously injected for client of type clientType using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument> function.
 
static bool Clear< TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > ([DisallowNull] Type clientType)
 Clears dependencies previously injected for client of type clientType using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument> function.
 
static bool Received< TClient, TArgument > (TClient client)
 Returns a value indicating if argument provided for client of type TClient using the Set<TClient, TArgument> function was received by the client.
 
static bool Received< TClient, TFirstArgument, TSecondArgument > (TClient client)
 Returns a value indicating if arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument> function were received by the client.
 
static bool Received< TClient, TFirstArgument, TSecondArgument, TThirdArgument > (TClient client)
 Returns a value indicating if arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument> function were received by the client.
 
static bool Received< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument > (TClient client)
 Returns a value indicating if arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument> function were received by the client.
 
static bool Received< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument > (TClient client)
 Returns a value indicating if arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument> function were received by the client.
 
static bool Received< TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument > (TClient client)
 Returns a value indicating if arguments provided for client of type TClient using the Set<TClient, TFirstArgument, TSecondArgument, TThirdArgument, TFourthArgument, TFifthArgument, TSixthArgument> function were received by the client.