Type:RefID: Difference between revisions

From Resonite Wiki
More refid info
Added a link. Also added a bit more to the description and a link as well.
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 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 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)

Revision as of 12:42, 22 May 2024

RefID is a wrapper type around a ulong value which represents a pointer to a 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 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)