Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:UpdatesOrTimeDelayWithData: Difference between revisions

From Resonite Wiki
Create ProtoFlux
 
m YoshBot moved page ProtoFlux:Updates Or Time Delay With Data to ProtoFlux:UpdatesOrTimeDelayWithData: Automated: removing spaces from ProtoFlux namespace
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#Invoke:ProtoFlux|GenerateUI
{{#Invoke:ProtoFlux|GenerateUI
|Name=Delay Updates
|Name=Updates Or Time Delay With Data
|Category=Async
|Category=Async
|Inputs=
|Inputs=
Line 6: Line 6:
{"Name":"*", "Type":"AsyncCall"},
{"Name":"*", "Type":"AsyncCall"},
{"Name":"Updates", "Type":"int"},
{"Name":"Updates", "Type":"int"},
{"Name":"Value", "Type":"Dummy"}
{"Name":"Value", "Type":"Dummy"},
{"Name":"Duration", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
Line 16: Line 17:
|}}
|}}


Delay Updates is a ProtoFlux node that will send an impulse out of Next ([[Impulses|Continuation]]) after some time. It will use Updates ([[Type:Int|int]]) updates if provided or Duration (Sudo-Generic) time if provided. It will start the delay after * ([[Impulses#ASync|ASync Call]]) is impulsed. It will carry a value and keep it during the duration of the delay and spit it out after the delay.
Updates Or Time Delay With Data is a ProtoFlux node that will send an impulse out of Next ([[Impulses|Continuation]]) after a delay. It will use Updates ([[Type:Int|int]]) updates if provided or Duration (Pseudo-generic) time if provided. It will start the delay after * ([[Impulses#ASync|ASync Call]]) is impulsed. It will carry a value and keep it during the duration of the delay and spit it out after the delay.
 
TODO: Which time takes priority?


== Inputs ==
== Inputs ==
Line 32: Line 35:
The value to delay. Can be any type.
The value to delay. Can be any type.


=== Duration (Sudo-Generic) ===
=== Duration (Pseudo-generic) ===


How long to delay for as a time rather than updates if provided.
How long to delay for as a time rather than updates if provided.
Line 44: Line 47:
=== Next ([[Impulses|Continuation]]) ===
=== Next ([[Impulses|Continuation]]) ===


Fires after Updates ([[Type:Int|int]]) updates has passed or Duration (Sudo-Generic) time after an impulse has been sent to * ([[Impulses#ASync|ASync Call]]).
Fires after Updates ([[Type:Int|int]]) updates has passed or Duration (Pseudo-generic) time after an impulse has been sent to * ([[Impulses#ASync|ASync Call]]).


=== OnTriggered ([[Impulses#ASync|ASync Call]]) ===
=== OnTriggered ([[Impulses#ASync|ASync Call]]) ===

Latest revision as of 00:39, 21 August 2025

Updates Or Time Delay With Data
*
Next
Updates
OnTriggered
Value
DelayedValue
Duration
Async

Updates Or Time Delay With Data is a ProtoFlux node that will send an impulse out of Next (Continuation) after a delay. It will use Updates (int) updates if provided or Duration (Pseudo-generic) time if provided. It will start the delay after * (ASync Call) is impulsed. It will carry a value and keep it during the duration of the delay and spit it out after the delay.

TODO: Which time takes priority?

Inputs

Call to start the delay.

Updates (int)

How many updates to delay for if provided.

Value (Generic)

The value to delay. Can be any type.

Duration (Pseudo-generic)

How long to delay for as a time rather than updates if provided.

If a value other than a TimeSpan is provided, this value will delay it in seconds.

Examples: Float, Double, Int, TimeSpan.

Outputs

Fires after Updates (int) updates has passed or Duration (Pseudo-generic) time after an impulse has been sent to * (ASync Call).

OnTriggered (ASync Call)

fires immediately after * (ASync Call) is called.

DelayedValue (Generic)

Has a value during the Next (Continuation) impulse and outputs the value that was provided to Value (Generic) when * (ASync Call) was impulsed.

Examples