Type:IWorldElement: Difference between revisions

From Resonite Wiki
Fixed links.
make the page more concise while keeping the same information. I don't think this page fits to mention ref hacking
Line 1: Line 1:
{{Stub}}
The '''IWorldElement''' type is an [[interface type]] that represents any object of a [[reference type]] that may exist in a world.


IWorldElement is an [[Interface Type]] for anything that may exist in a world. Some elements like [[Type:User|Users]] and [[Type:IStream|Streams]] are not part of the [[Root]] hierarchy.
Every object that can be referenced can be casted to and from IWorldElement, making the type a universal interface to everything in a world.


It allows you to reference:
Objects that are IWorldElements include, but are not limited to:


* [[Component|Components]]
* [[Slots]]
* [[Slot|Slots]]
* [[Components]]
* [[Type:User|Users]]
* [[Users]]
* [[Type:ISyncElement|Sync Elements]] (includes [[Type:IValue`1|Values]]/[[Type:IField`1|Fields]])
* [[Type:SyncElement|Sync Elements]], such as [[Type:IField|fields]] on an object
* [[Type:SyncObject|Sync Objects]]
* [[Type:SyncObject|Sync Objects]], such as <code>Point</code>s on a [[Component:ValueGradientDriver|ValueGradientDriver]]
* [[Type:IStream|Streams]]
* [[Type:World|The World]]


Each networked instance is assigned a unique [[Type:RefID|RefID]] which is the basis for [[Ref Hacking]].
Every IWorldElement has a unique [[Type:RefID|reference ID]] associated with it. Only one IWorldElement in a world may have any given reference ID, including elements that exist outside of the [[Root]] hierarchy.
 
 
The only exception to this type is references above root {{Clarify}}, which can only be accessed through commonly unsupported/frowned upon methods such as Reference Hacking Aka RefHacking. Types that don't fall under IWorldElement can be dangerous to mess with if you don't know what they do. If you're not the host, you can even get security kicked, booting you from the world due to the game thinking you are trying to tamper with the session's permissions.
 
See also: [[Things to Avoid#Reference IDs / "Ref Hacking"|Things to Avoid]]
 
[[Category:Type]]

Revision as of 02:29, 10 December 2024

The IWorldElement type is an interface type that represents any object of a reference type that may exist in a world.

Every object that can be referenced can be casted to and from IWorldElement, making the type a universal interface to everything in a world.

Objects that are IWorldElements include, but are not limited to:

Every IWorldElement has a unique reference ID associated with it. Only one IWorldElement in a world may have any given reference ID, including elements that exist outside of the Root hierarchy.