Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
111 stars 0 forks source link

New ProtoFlux Node: ReferenceInterfaceTarget<T> #2011

Open JackTheFoxOtter opened 3 weeks ago

JackTheFoxOtter commented 3 weeks ago

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

Currently, ReferenceTarget<T> exists, and takes a SyncRef<T> as an input. There is however no version of this node that takes an ISyncRef<T> as an input.

Describe the solution you'd like

The new node ReferenceInterfaceTarget<T>, which is the same as ReferenceTarget<T>, just that it takes an ISyncRef<T> instead of a SyncRef<T> as an input.

Describe alternatives you've considered

None.

Additional Context

This is a relatively low priority issue, I don't think there are many types that implement ISyncRef<T> directly. The only ones I can think of are SyncRef<T> and UserRef.

This would however be consistent with ReferenceAsVariable<T>, which has a ReferenceInterfaceAsVariable<T> counterpart: image

Requesters

No response

EmergencyTemporalShift commented 3 weeks ago

For the fluxers who are less knowledgeable about these, what would this help with? I'm curious.