ITextStudioReactionActionState
public interface ITextStudioReactionActionStateReusable host-local state. CreateState runs during preparation or pool growth, never in a warmed sample.
Methods
Section titled “Methods”
Sample(in TextStudioReactionContext, float, double)
Section titled “Sample(in TextStudioReactionContext, float, double)”TextStudioReactionActionSample Sample(in TextStudioReactionContext context, float progress, double hostTime)Samples the response at the supplied progress and host time, returning action events or target loss.
Parameters
| Name | Type |
|---|---|
context | TextStudio.TextStudioReactionContext |
progress | System.Single |
hostTime | System.Double |
Returns
TextStudio.TextStudioReactionActionSample
Complete(in TextStudioReactionContext)
Section titled “Complete(in TextStudioReactionContext)”void Complete(in TextStudioReactionContext context)Handles successful completion after the response reaches its end.
Parameters
| Name | Type |
|---|---|
context | TextStudio.TextStudioReactionContext |
Cancel(in TextStudioReactionContext, TextStudioReactionCancelReason)
Section titled “Cancel(in TextStudioReactionContext, TextStudioReactionCancelReason)”void Cancel(in TextStudioReactionContext context, TextStudioReactionCancelReason reason)Cancels an action for the supplied reason and performs its cancellation cleanup.
Parameters
| Name | Type |
|---|---|
context | TextStudio.TextStudioReactionContext |
reason | TextStudio.TextStudioReactionCancelReason |
Dispose()
Section titled “Dispose()”void Dispose()Releases resources owned by this action state when the state is no longer used.