Type:IValue`1: Difference between revisions

From Resonite Wiki
cleanup, `1 -> <T>, maybe this isn't too confusing?
m reference types
 
Line 21: Line 21:


[[Category:Type]]
[[Category:Type]]
[[Category:Reference Types]]

Latest revision as of 03:26, 10 December 2024

The IValue<T> type is an interface type that wraps around a type to provide an interface to read from and write to an object. In practice, FrooxEngine uses the T generic parameter exclusively for value types within the Data Model, and there is no use for an IValue<T> holding a reference type.

An object with a type implementing this interface allows for the object to be sourced in ProtoFlux, which in turn allows for the thing to be written to via a Write node. This does not allow the object to be driven, which requires it to implement ILinkable, usually through an IField<T>.

Interfaces Implemented

Types Implementing IValue

Components Implementing IValue<T>

The following components implement the IValue<T> type, allowing the component itself to be sourced and written to, which is usually not possible.