From 2d27197e61c9cf7f0d831ba664ab0d3074e3153c Mon Sep 17 00:00:00 2001 From: Muscipular Date: Sat, 11 Jun 2022 01:49:36 +0800 Subject: [PATCH] =?UTF-8?q?[#]=20ItemExpansionEvent=20=E6=B7=BB=E5=8A=A0ch?= =?UTF-8?q?arIndex,=20slot=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs.lua b/docs.lua index 998556d..09a4506 100644 --- a/docs.lua +++ b/docs.lua @@ -320,6 +320,20 @@ function NL.RegCallback(event, callbackStr) end function NL.RemoveCallback(event) end +---道具说明修改事件 +---@param callback string callback回调参数 +---@see NL.RegItemExpansionEventCallback +function NL.RegItemExpansionEvent(dofile, callback) end + +---道具说明修改事件回调 +---@param itemIndex number +---@param type number +---@param msg string +---@param charIndex number +---@param slot number +---@return string +function NL.RegItemExpansionEventCallback(itemIndex, type, msg, charIndex, slot) end + ---宝箱遇敌事件 ---@param callback string callback回调参数 fun(charaIndex:number,mapId:number,floor:number,X:number,Y:number,boxType:number):number[]|nil function NL.RegItemBoxEncountEvent(dofile, callback) end