Type:RefID: Difference between revisions

From Resonite Wiki
More refid info
Small correction.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
RefID is a wrapper type around a [[Type:ULong|ulong]] value which represents a pointer to a 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)

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)