Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
118 stars 1 forks source link

New ProtoFlux Nodes: GetValue<T> #2009

Open JackTheFoxOtter opened 1 month ago

JackTheFoxOtter commented 1 month ago

Is your feature request related to a problem? Please describe.

Currently, when you have an IValue\<T> or derivative type, you can't easily access the contained value.

Describe the solution you'd like

A node GetValue\<T> which takes an IValue\<T> as an input and outputs the contained value of type T.

Describe alternatives you've considered

ToString and parsing works, but is cursed.

Additional Context

No response

Requesters

No response

JackTheFoxOtter commented 1 month ago

Additionally, a GetReference\<T> node taking an ISyncRef\<T> as an input and outputting the referenced reference of type T would make sense for consistency.

JackTheFoxOtter commented 1 month ago

Actually I just realized the latter already exists, ReferenceTarget\<T>. So the only thing we don't have is a GetValue\<T>.