Browse Source

rm Source:get/setDirection;

bjorn 5 years ago
parent
commit
ea87d004a6
3 changed files with 0 additions and 104 deletions
  1. 0 58
      api/init.lua
  2. 0 24
      api/lovr/audio/Source/getDirection.lua
  3. 0 22
      api/lovr/audio/Source/setDirection.lua

+ 0 - 58
api/init.lua

@@ -1633,35 +1633,6 @@ return {
                 }
               }
             },
-            {
-              name = "getDirection",
-              summary = "Get the direction vector of the Source.",
-              description = "Returns the direction vector of the Source (the direction it's playing in).",
-              key = "Source:getDirection",
-              module = "lovr.audio",
-              variants = {
-                {
-                  arguments = {},
-                  returns = {
-                    {
-                      name = "x",
-                      type = "number",
-                      description = "The x component of the direction vector."
-                    },
-                    {
-                      name = "y",
-                      type = "number",
-                      description = "The y component of the direction vector."
-                    },
-                    {
-                      name = "z",
-                      type = "number",
-                      description = "The z component of the direction vector."
-                    }
-                  }
-                }
-              }
-            },
             {
               name = "getDuration",
               summary = "Get the duration of the Source.",
@@ -2195,35 +2166,6 @@ return {
                 }
               }
             },
-            {
-              name = "setDirection",
-              summary = "Set the direction vector of the Source.",
-              description = "Sets the direction vector of the Source (the direction it's playing in).",
-              key = "Source:setDirection",
-              module = "lovr.audio",
-              variants = {
-                {
-                  arguments = {
-                    {
-                      name = "x",
-                      type = "number",
-                      description = "The x component of the direction vector."
-                    },
-                    {
-                      name = "y",
-                      type = "number",
-                      description = "The y component of the direction vector."
-                    },
-                    {
-                      name = "z",
-                      type = "number",
-                      description = "The z component of the direction vector."
-                    }
-                  },
-                  returns = {}
-                }
-              }
-            },
             {
               name = "setFalloff",
               summary = "Set the falloff parameters for the Source.",

+ 0 - 24
api/lovr/audio/Source/getDirection.lua

@@ -1,24 +0,0 @@
-return {
-  summary = 'Get the direction vector of the Source.',
-  description = [[
-    Returns the direction vector of the Source (the direction it's playing in).
-  ]],
-  arguments = {},
-  returns = {
-    {
-      name = 'x',
-      type = 'number',
-      description = 'The x component of the direction vector.'
-    },
-    {
-      name = 'y',
-      type = 'number',
-      description = 'The y component of the direction vector.'
-    },
-    {
-      name = 'z',
-      type = 'number',
-      description = 'The z component of the direction vector.'
-    }
-  }
-}

+ 0 - 22
api/lovr/audio/Source/setDirection.lua

@@ -1,22 +0,0 @@
-return {
-  summary = 'Set the direction vector of the Source.',
-  description = 'Sets the direction vector of the Source (the direction it\'s playing in).',
-  arguments = {
-    {
-      name = 'x',
-      type = 'number',
-      description = 'The x component of the direction vector.'
-    },
-    {
-      name = 'y',
-      type = 'number',
-      description = 'The y component of the direction vector.'
-    },
-    {
-      name = 'z',
-      type = 'number',
-      description = 'The z component of the direction vector.'
-    }
-  },
-  returns = {}
-}