summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.NavMesh.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.NavMesh.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.NavMesh.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.NavMesh.lua50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.NavMesh.lua b/meta/3rd/Cocos4.0/library/cc.NavMesh.lua
new file mode 100644
index 00000000..a78e8336
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.NavMesh.lua
@@ -0,0 +1,50 @@
+---@meta
+
+---@class cc.NavMesh :cc.Ref
+local NavMesh={ }
+cc.NavMesh=NavMesh
+
+
+
+
+---* remove a obstacle from navmesh.
+---@param obstacle cc.NavMeshObstacle
+---@return self
+function NavMesh:removeNavMeshObstacle (obstacle) end
+---* remove a agent from navmesh.
+---@param agent cc.NavMeshAgent
+---@return self
+function NavMesh:removeNavMeshAgent (agent) end
+---* update navmesh.
+---@param dt float
+---@return self
+function NavMesh:update (dt) end
+---* Check enabled debug draw.
+---@return boolean
+function NavMesh:isDebugDrawEnabled () end
+---* add a agent to navmesh.
+---@param agent cc.NavMeshAgent
+---@return self
+function NavMesh:addNavMeshAgent (agent) end
+---* add a obstacle to navmesh.
+---@param obstacle cc.NavMeshObstacle
+---@return self
+function NavMesh:addNavMeshObstacle (obstacle) end
+---* Enable debug draw or disable.
+---@param enable boolean
+---@return self
+function NavMesh:setDebugDrawEnable (enable) end
+---* Internal method, the updater of debug drawing, need called each frame.
+---@param renderer cc.Renderer
+---@return self
+function NavMesh:debugDraw (renderer) end
+---* Create navmesh<br>
+---* param navFilePath The NavMesh File path.<br>
+---* param geomFilePath The geometry File Path,include offmesh information,etc.
+---@param navFilePath string
+---@param geomFilePath string
+---@return self
+function NavMesh:create (navFilePath,geomFilePath) end
+---*
+---@return self
+function NavMesh:NavMesh () end \ No newline at end of file