Type:IValue`1: Difference between revisions

From Resonite Wiki
imported>ProbablePrime
m ProbablePrime moved page Category:Types:IValue`1 to Types:IValue`1
 
m typo AGAIN RAAAH
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="wikitable"
The '''IValue<nowiki><T></nowiki>''' type is an [[Interface Type]] that designates the type it is applied to as something that contains a [[Value Type]].
|-
 
| Color
This allows for the thing implementing the type to be [[ProtoFlux:Source|sourced]] in ProtoFlux, which in turn allows for the thing to be written to via a [[ProtoFlux:Write|Write]] node. This does <em>not</em> allow the object to be [[Drive|driven]], which requires it to implement [[Type:ILinkable|ILinkable]].
| Type
 
|-
== Interfaces Implemented ==
| style="background-color:{{IValue-color}}" |
* [[Type:IChangeable]]
| IValue<nowiki><T></nowiki>
* [[Type:IWorldElement]]
|}
 
A IValue<nowiki><T></nowiki> Is a reference value type. This is used for writing to a value like a variable or components values.
== Types Implementing IValue ==
[[Category:Types]]
* [[Type:IField`1]]
* [[Type:ValueStream`1]]
 
== Components Implementing IValue ==
The following components implement the IValue type, allowing the component itself to be sourced and written to, which is usually not possible.
 
* [[Component:AuthorityTimeBase]]
* [[Component:ValueMultiplexer]]
 
[[Category:Type]]

Latest revision as of 20:16, 13 August 2024

The IValue<T> type is an Interface Type that designates the type it is applied to as something that contains a Value Type.

This allows for the thing implementing the type 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.

Interfaces Implemented

Types Implementing IValue

Components Implementing IValue

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