mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
dedde94643
* the process of using card (uncompleted) * code style: tab is 2 spaces(not \t or 4 space) * update lua54.dll to MinGW version(no cygwin1.dll required) * basic ui logic * ActiveSkill * modidy ActiveSkill defaults * todo: defaultEquipSkill * client * send use card to server * playing phase, equip Co-authored-by: Ho-spair <linyuy@163.com>
21 lines
575 B
Lua
21 lines
575 B
Lua
---@diagnostic disable: lowercase-global
|
|
inspect = require "inspect"
|
|
|
|
DebugMode = true
|
|
function PrintWhenMethodCall()
|
|
local info = debug.getinfo(2)
|
|
local name = info.name
|
|
local line = info.currentline
|
|
local namewhat = info.namewhat
|
|
local shortsrc = info.short_src
|
|
if (namewhat == "method") and
|
|
(shortsrc ~= "[C]") and
|
|
(not string.find(shortsrc, "/lib")) then
|
|
print(shortsrc .. ":" .. line .. ": " .. name)
|
|
end
|
|
end
|
|
--debug.sethook(PrintWhenMethodCall, "c")
|
|
|
|
function p(v) print(inspect(v)) end
|
|
function pt(t) for k,v in pairs(t)do print(k,v) end end
|