Browse Source

Add missing variants;

bjorn 1 year ago
parent
commit
0a5d442a8c
2 changed files with 15 additions and 6 deletions
  1. 6 0
      api/lovr/Object/release.lua
  2. 9 6
      api/lovr/getVersion.lua

+ 6 - 0
api/lovr/Object/release.lua

@@ -9,6 +9,12 @@ return {
   ]],
   ]],
   arguments = {},
   arguments = {},
   returns = {},
   returns = {},
+  variants = {
+    {
+      arguments = {},
+      returns = {}
+    }
+  },
   notes = [[
   notes = [[
     The object may not be destroyed immediately if something else is referring to it (e.g. it is
     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).
     pushed to a Channel or exists in the payload of a pending event).

+ 9 - 6
api/lovr/getVersion.lua

@@ -4,20 +4,23 @@ return {
   description = 'Get the current major, minor, and patch version of LÖVR.',
   description = 'Get the current major, minor, and patch version of LÖVR.',
   arguments = {},
   arguments = {},
   returns = {
   returns = {
-    {
-      name = 'major',
+    major = {
       type = 'number',
       type = 'number',
       description = 'The major version.'
       description = 'The major version.'
     },
     },
-    {
-      name = 'minor',
+    minor = {
       type = 'number',
       type = 'number',
       description = 'The minor version.'
       description = 'The minor version.'
     },
     },
-    {
-      name = 'patch',
+    patch = {
       type = 'number',
       type = 'number',
       description = 'The patch number.'
       description = 'The patch number.'
     }
     }
+  },
+  variants = {
+    {
+      arguments = {},
+      returns = { 'major', 'minor', 'patch' }
+    }
   }
   }
 }
 }