TriLib 2.2.8
|
Represents an Action with a context used by Threads. More...
Public Member Functions | |
ContextualizedAction (Action action) | |
Initializes the Contextualized Action using the given Action. | |
AssetLoaderContext | GetContext () |
Returns the Context used in this Action. | |
void | Invoke () |
Invokes the Action on the new Thread with the Context as the argument. | |
override string | ToString () |
ContextualizedAction (Action< T > action, T context) | |
Initializes the Contextualized Action using the given Action and Context. | |
AssetLoaderContext | GetContext () |
Returns the Context used in this Action. | |
void | Invoke () |
Invokes the Action on the new Thread with the Context as the argument. | |
override string | ToString () |
void | Invoke () |
Invokes this Action without using any context. | |
AssetLoaderContext | GetContext () |
Returns the Context used in this Action. | |
Public Attributes | |
readonly Action | Action |
Action to call on the new Thread. | |
readonly Action< T > | Action |
Action to call on the new Thread. | |
readonly T | Context |
Context Object passed to the Action. | |
Properties | |
bool | Completed [get] |
Indicates whether this Action is completed. | |
Properties inherited from TriLibCore.Interfaces.IContextualizedAction | |
bool | Completed [get] |
Indicates whether this Action is completed. | |
Represents an Action with a context used by Threads.
T | Context type. |
TriLibCore.General.ContextualizedAction< T >.ContextualizedAction | ( | Action | action | ) |
Initializes the Contextualized Action using the given Action.
action | The Action to be executed. |
TriLibCore.General.ContextualizedAction< T >.ContextualizedAction | ( | Action< T > | action, |
T | context | ||
) |
Initializes the Contextualized Action using the given Action and Context.
action | The Action to be executed. |
context | The Context which has been passed to the Action. |
AssetLoaderContext TriLibCore.General.ContextualizedAction< T >.GetContext | ( | ) |
Returns the Context used in this Action.
Implements TriLibCore.Interfaces.IContextualizedAction.
AssetLoaderContext TriLibCore.General.ContextualizedAction< T >.GetContext | ( | ) |
Returns the Context used in this Action.
Implements TriLibCore.Interfaces.IContextualizedAction.
void TriLibCore.General.ContextualizedAction< T >.Invoke | ( | ) |
Invokes the Action on the new Thread with the Context as the argument.
Implements TriLibCore.Interfaces.IContextualizedAction.
void TriLibCore.General.ContextualizedAction< T >.Invoke | ( | ) |
Invokes the Action on the new Thread with the Context as the argument.
Implements TriLibCore.Interfaces.IContextualizedAction.
|
get |
Indicates whether this Action is completed.
Implements TriLibCore.Interfaces.IContextualizedAction.