Init(args)
Scripting Reference
Loading...
Searching...
No Matches
Sisus.Init.IValueByTypeProvider Interface Reference

Description

Represents an object that can provide a value of a requested type to a GameObject client.

If a class derives from Object and implements IValueByTypeProviderAsync then Any<T> can wrap an instance of this class and return its value when Any<T>.GetValue<TClient> is called.

See also
IValueProvider<TValue>, IValueByTypeProvider, IValueByTypeProviderAsync
Inheritance diagram for Sisus.Init.IValueByTypeProvider:
Sisus.Init.ScriptableWrapper< TWrapped > Sisus.Init.ServiceProvider Sisus.Init.Wrapper Sisus.Init.Wrapper< TWrapped >

Public Member Functions

bool TryGetFor< TValue > ([AllowNull] Component client, [NotNullWhen(true), MaybeNullWhen(false)] out TValue value)
 Gets the value of type TValue for the client .
 
bool TryGetFor ([AllowNull] Component client, [DisallowNull] Type valueType, out object value)
 Gets the value of the given type for the client .
 
bool HasValueFor< TValue > (Component client)
 Gets a value indicating whether this value provider can provide a value of type TValue for the client at this time.
 
bool CanProvideValue< TValue > ([AllowNull] Component client)
 Gets a value indicating whether this value provider can potentially provide a value of the given type to the client at runtime.