Type:RefID: Difference between revisions

From Resonite Wiki
Added a link. Also added a bit more to the description and a link as well.
Small correction.
 
Line 1: Line 1:
RefID is a wrapper type around a [[Type:ULong|ulong]] value which represents a pointer to a [[Type:IWorldElement|world element]].
RefID is a wrapper type around a [[Type:ULong|ulong]] value which represents a pointer to a [[Type:IWorldElement|world element]].


It uses it's last 2 bytes to represent the allocation id of a user who allocated the world element, and the remaining bytes are used to represent which world element it's pointing to.
It uses its final byte to represent the allocation id of a user who allocated the world element, and the remaining bytes are used to represent which world element it's pointing to.


It is primarily an internal engine type and is not meant to be used directly.
It is primarily an internal engine type and is not meant to be used directly.


Many users eventually found that it is useful for [[Ref Hacking]], as this type is a reference to different parts of the engine ([[Slot|Slots]], [[Component|Components]], etc)
Many users eventually found that it is useful for [[Ref Hacking]], as this type is a reference to different parts of the engine ([[Slot|Slots]], [[Component|Components]], etc)

Latest revision as of 22:52, 7 June 2024

RefID is a wrapper type around a ulong value which represents a pointer to a world element.

It uses its final byte to represent the allocation id of a user who allocated the world element, and the remaining bytes are used to represent which world element it's pointing to.

It is primarily an internal engine type and is not meant to be used directly.

Many users eventually found that it is useful for Ref Hacking, as this type is a reference to different parts of the engine (Slots, Components, etc)