LuaUUID

From SDK
Jump to navigation Jump to search
Back.jpg

Every object in the job has a unique id referred to as a UUID. As these id’s are difficult to save and process from lua, the luUUID object wraps a windows UUID and lets it be treated as a string.

Constructor


luaUUID()

A new luaUUID with a new unique id.


Properties


.IsEmpty

Read Only - bool – returns true if this is the NULL / Empty id


.RawId

Read Only - UUID – returns the raw UUID this object wraps up

Methods


:MakeEmpty()

Makes this id equal to the ‘empty’ id



:CreateNew()

Make the id hold a new unique value



:AsString()

Return a string representation of the id



:Set(string text_id)

Set the id using a string representation of the id

text_id – string – text representation of an id



:SetId(UUID raw_id)

Set the id using raw id

raw_id –UUID – id



:IsEqual(luaUUID id)

Return true if passed id is the same as this one

id –UUID – id to compare


Back.jpg

References

Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information