Skip to content

Commit de352a3

Browse files
committed
update olua to v1.5
1 parent 09f7402 commit de352a3

File tree

1,090 files changed

+121468
-52582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,090 files changed

+121468
-52582
lines changed

.luarc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"diagnostics.disable": ["redundant-return-value"],
3+
"workspace.library": ["addons"],
4+
"workspace.ignoreDir": [
5+
"tools/lua-bindings/olua/examples/lua",
6+
"frameworks/3rd/",
7+
"src/cclua/3rd"
8+
],
9+
"workspace.ignoreSubmodules": false,
10+
"diagnostics.globals": [
11+
"DEBUG",
12+
"main",
13+
"api_dir",
14+
"autoconf",
15+
"clang",
16+
"codeblock",
17+
"entry",
18+
"exclude_type",
19+
"headers",
20+
"import",
21+
"luacls",
22+
"luaopen",
23+
"macro",
24+
"olua",
25+
"output_dir",
26+
"typeconf",
27+
"typedef",
28+
"typeonly"
29+
]
30+
}

.vscode/launch.json

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
7+
{
8+
"type": "lua",
9+
"request": "launch",
10+
"name": "build-binding",
11+
"windows": {
12+
"luaexe": "lua.exe"
13+
},
14+
"osx": {
15+
"luaexe": "lua"
16+
},
17+
"stopOnEntry": false,
18+
"cwd": "${workspaceFolder}/tools/lua-bindings",
19+
"program": "build.lua"
20+
},
821
{
922
"name": "LuaDebug",
1023
"program": "",
@@ -22,20 +35,5 @@
2235
]
2336
]
2437
},
25-
{
26-
"type": "LuaHelper-Debug",
27-
"request": "launch",
28-
"name": "LuaPanda",
29-
"description": "通用模式,通常调试项目请选择此模式",
30-
"cwd": "${workspaceFolder}/assets",
31-
"luaFileExtension": "",
32-
"connectionPort": 8818,
33-
"stopOnEntry": true,
34-
"useCHook": true,
35-
"args": ["--workdir", "${workspaceFolder}/assets", "--lua-debug", "luapanda"],
36-
"windows": {"program": "${workspaceFolder}/build/vs-build/bin/cocoslua/Debug/cocoslua.exe"},
37-
"osx": {"program": "${workspaceFolder}/build/mac-build/bin/cocoslua/Debug/cocoslua.app/Contents/MacOS/cocoslua"},
38-
"autoPathMode": true
39-
}
4038
]
4139
}

addons/cclua/box2d/config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/LuaLS/LLS-Addons/main/schemas/addon_config.schema.json",
3+
"words": ["%s+-box2d"],
4+
"files": ["box2d"],
5+
"settings": {}
6+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---AUTO GENERATED, DO NOT MODIFY!
2+
---@meta b2.AABB
3+
4+
---An axis aligned bounding box.
5+
---@class b2.AABB
6+
---@field center b2.Vec2 Get the center of the AABB.
7+
---@field extents b2.Vec2 Get the extents of the AABB (half-widths).
8+
---@field perimeter number Get the perimeter length
9+
---@field valid boolean Verify that the bounds are sorted.
10+
---@field lowerBound b2.Vec2
11+
---@field upperBound b2.Vec2
12+
local AABB = {}
13+
14+
---@return any
15+
function AABB:__gc() end
16+
17+
---Combine an AABB into this one.
18+
---@param aabb b2.AABB
19+
---
20+
---Combine two AABBs into this one.
21+
---@overload fun(self: b2.AABB, aabb1: b2.AABB, aabb2: b2.AABB)
22+
function AABB:combine(aabb) end
23+
24+
---Does this aabb contain the provided AABB.
25+
---@param aabb b2.AABB
26+
---@return boolean
27+
function AABB:contains(aabb) end
28+
29+
---Get the center of the AABB.
30+
---@return b2.Vec2
31+
function AABB:getCenter() end
32+
33+
---Get the extents of the AABB (half-widths).
34+
---@return b2.Vec2
35+
function AABB:getExtents() end
36+
37+
---Get the perimeter length
38+
---@return number
39+
function AABB:getPerimeter() end
40+
41+
---Verify that the bounds are sorted.
42+
---@return boolean
43+
function AABB:isValid() end
44+
45+
---@param output b2.RayCastOutput
46+
---@param input b2.RayCastInput
47+
---@return boolean
48+
function AABB:rayCast(output, input) end
49+
50+
return AABB

0 commit comments

Comments
 (0)