Type:SyncRef`1: Difference between revisions

From Resonite Wiki
add info
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Sync Ref is a container for a reference that needs to be syncronized via the [[Data Model]]. Sync Refs can hold any type of [[Type:IWorldElement|IWorldElement]]. If a reference is put inside of SyncRef that can't be synchronized, it may kick everyone but the host from a session.  
The '''SyncRef<T>''' type is a type used to contain a reference to a [[Reference Type]] <code>T</code>.
 
The specific, non-generic '''SyncRef''' type is an alias for SyncRef<[[Type:IWorldElement|IWorldElement]]>. It is compatible with its generic counterpart and objects of either SyncRef or SyncRef<IWorldElement> can be casted between the two types perfectly fine.
 
== Derivation Hierarchy ==
 
{{SyncFieldHierarchy}}
 
== Unique Interfaces Implemented ==
 
* [[Type:ISyncRef`1|ISyncRef&lt;T&gt;]]
* [[Type:ISyncRef|ISyncRef]]
* [[Type:IWorldElementReceiver|IWorldElementReceiver]]


SyncRef<nowiki><T></nowiki>
[[Category:Type]]
[[Category:Type]]
[[Category:Reference Types]]

Latest revision as of 03:26, 10 December 2024

The SyncRef<T> type is a type used to contain a reference to a Reference Type T.

The specific, non-generic SyncRef type is an alias for SyncRef<IWorldElement>. It is compatible with its generic counterpart and objects of either SyncRef or SyncRef<IWorldElement> can be casted between the two types perfectly fine.

Derivation Hierarchy

Sync field hierarchy
base types
single value
List
Array
Dictionary
Bag

Unique Interfaces Implemented