From 128584e0d91098f8a0d3c6bc48dc529e59d5d1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 31 Mar 2019 13:14:49 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=AE=E5=BD=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/locale/en-US/libs/lua/debug.lni | 87 ++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 server/locale/en-US/libs/lua/debug.lni (limited to 'server/locale/en-US/libs/lua/debug.lni') diff --git a/server/locale/en-US/libs/lua/debug.lni b/server/locale/en-US/libs/lua/debug.lni new file mode 100644 index 00000000..d94a8b47 --- /dev/null +++ b/server/locale/en-US/libs/lua/debug.lni @@ -0,0 +1,87 @@ +["debug.debug"] +description = 'Enters an interactive mode with the user, running each string that the user enters.' + +[gethook] +description = 'Returns the current hook settings of the thread.' + +[getinfo] +description = 'Returns a table with information about a function.' +[[.enums]] +name = 'what' +enum = 'n' +description = '`name` and `namewhat`' +`````````` +name = 'what' +enum = 'S' +description = '`source`, `short_src`, `linedefined`, `lastlinedefined`, and `what`' +`````````` +name = 'what' +enum = 'l' +description = '`currentline`' +`````````` +name = 'what' +enum = 't' +description = '`istailcall`' +`````````` +name = 'what' +enum = 'u' +description = '`nups`, `nparams`, and `isvararg`' +`````````` +name = 'what' +enum = 'f' +description = '`func`' +`````````` +name = 'what' +enum = 'L' +description = '`activelines`' + +[getlocal] +description = 'Returns the name and the value of the local variable with index `local` of the function at level `f` of the stack.' + +[getmetatable] +description = 'Returns the metatable of the given value.' + +[getregistry] +description = 'Returns the registry table.' + +[getupvalue] +description = 'Returns the name and the value of the upvalue with index `up` of the function.' + +[getuservalue] +description = 'Returns the Lua value associated to u.' + +[sethook] +description = 'Sets the given function as a hook.' +[[.enums]] +name = 'mask' +enum = 'c' +description = 'Calls hook when Lua calls a function.' +`````````` +name = 'mask' +enum = 'r' +description = 'Calls hook when Lua returns from a function.' +`````````` +name = 'mask' +enum = 'l' +description = 'Calls hook when Lua enters a new line of code.' + +[setlocal] +description = 'Assigns the `value` to the local variable with index `local` of the function at `level` of the stack.' + +[setmetatable] +description = 'Sets the metatable for the given value to the given table (which can be nil).' + +[setupvalue] +description = 'Assigns the `value` to the upvalue with index `up` of the function.' + +[setuservalue] +description = 'Sets the given value as the Lua value associated to the given udata.' + +[traceback] +description = 'Returns a string with a traceback of the call stack. The optional message string is appended at the beginning of the traceback.' + +[upvalueid] +description = 'Returns a unique identifier (as a light userdata) for the upvalue numbered `n` from the given function.' + +[upvaluejoin] +description = 'Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th upvalue of the Lua closure `f2`.' -- cgit v1.2.3