-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cursorrules
19 lines (16 loc) · 918 Bytes
/
.cursorrules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
It's a native extension for the Defold game engine. It uses Lua 5.1 as its scripting language with "bit" module for bitwise operations. 4 spaces for indentation. "snake_case" for variable, function, file, folder names. It uses LDoc for documentation.
The example of LDoc is:
```lua
--- Summary ends with a period.
-- Some description, can be over several lines.
-- @tparam string p1 first parameter
-- @tparam[opt] string p2 second parameter (optional)
-- @treturn number a number value
-- @see second_fun
function mod1.first_fun(p1,p2)
end
```
The structure of the project is the following:
- folder "netlib_src" contains the TypeScript code of the extension.
- folder "netlib_ext" contains the Lua and C/C++ part of the extension. C/C++ code is compiled to WebAssembly via Emscripten and uses the TypeScript code of the extension.
- folder "example" contains the example project written in Lua for the extension.