diff options
Diffstat (limited to 'meta/3rd/lovr/library/lovr.lua')
-rw-r--r-- | meta/3rd/lovr/library/lovr.lua | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/meta/3rd/lovr/library/lovr.lua b/meta/3rd/lovr/library/lovr.lua index 00a8f4b7..83acdec7 100644 --- a/meta/3rd/lovr/library/lovr.lua +++ b/meta/3rd/lovr/library/lovr.lua @@ -15,14 +15,30 @@ lovr = {} function lovr.getVersion() end --- ----This is not a real object, but describes the behavior shared by all objects. Think of it as the superclass of all LÖVR objects. +---This is not a real object, but describes the behavior shared by all objects. --- ----In addition to the methods here, all objects have a `__tostring` metamethod that returns the name of the object's type. So to check if a LÖVR object is an instance of "Blob", you can do `tostring(object) == 'Blob'`. +---Think of it as the superclass of all LÖVR objects. +--- +---In addition to the methods here, all objects have a `__tostring` metamethod that returns the name of the object's type. +--- +---So to check if a LÖVR object is an instance of "Blob", you can do `tostring(object) == 'Blob'`. +--- +--- +---### NOTE: +---Note that the functions here don't apply to any vector objects, see `Vectors`. --- ---@class lovr.Object local Object = {} --- ----Immediately destroys Lua's reference to the object it's called on. After calling this function on an object, it is an error to do anything with the object from Lua (call methods on it, pass it to other functions, etc.). If nothing else is using the object, it will be destroyed immediately, which can be used to destroy something earlier than it would normally be garbage collected in order to reduce memory. +---Immediately destroys Lua's reference to the object it's called on. +--- +---After calling this function on an object, it is an error to do anything with the object from Lua (call methods on it, pass it to other functions, etc.). +--- +---If nothing else is using the object, it will be destroyed immediately, which can be used to destroy something earlier than it would normally be garbage collected in order to reduce memory. +--- +--- +---### NOTE: +---The object may not be destroyed immediately if something else is referring to it (e.g. it is pushed to a Channel or exists in the payload of a pending event). --- function Object:release() end |