浏览代码

Add missing variants;

bjorn 1 年之前
父节点
当前提交
0a5d442a8c
共有 2 个文件被更改,包括 15 次插入6 次删除
  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' }
+    }
   }
   }
 }
 }