Type:SyncRef`1: Difference between revisions

From Resonite Wiki
add info
overhaul
 
(One intermediate revision by one other user 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.
 
== Derived From ==
* [[Type:SyncField`1|SyncField]]<[[Type:RefID|RefID]]>
 
== Interfaces Implemented ==
* [[Type:ISyncRef`1|ISyncRef<T>]]
* [[Type:ISyncRef|ISyncRef]]
* [[Type:ISyncMember|ISyncMember]]
* [[Type:IChangeable|IChangeable]]
* [[Type:IWorldElement|IWorldElement]]
* [[Type:ILinkable|ILinkable]]
* [[Type:IInitializable|IInitializable]]
* [[Type:IWorldElementReceiver|IWorldElementReceiver]]
* [[Type:IField|IField]]<RefID>
* [[Type:IField|IField]]
* [[Type:IValue|IValue]]<RefID>
* [[Type:IValue|IValue]]


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

Latest revision as of 23:16, 16 August 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.

Derived From

Interfaces Implemented