SL_Tips.lua 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863
  1. ---@class SL
  2. SL = {}
  3. local this = SL
  4. function SL:Init() end
  5. ---@param rsp LuaProtos.LuaRes
  6. function SL:OnReciveLuaMessage(id, rsp) end
  7. ---SendLuaNetMsg 发送消息
  8. function SL:SendLuaNetMsg(msgId, data) end
  9. ---@param baseUI UIKmlLuaPanelBase @可缺省
  10. function SL:RegisterLuaNetMsg(msgId, func, baseUI) end
  11. function SL:UnRegisterLuaNetMsg(eventId, func, selfOwner) end
  12. ---@param baseUI UIKmlLuaPanelBase @可缺省
  13. function SL:RegisterLUAEvent(eventId, func, baseUI) end
  14. function SL:UnRegisterLUAEvent(eventId, func, selfOwner) end
  15. function this:onLUAEvent(eventID, data) end
  16. ---@return void @只能注册单个,触发函数返回true则阻断官方自带逻辑,返回false继续执行官方逻辑
  17. function this:RegisterTrigger(triggerId, func, selfOwner) end
  18. function this:UnRegisterTrigger(triggerId) end
  19. function this:onTriggerEvent(eventID, ...) end
  20. function this:GetConfigFieldToList(name, key, value) end
  21. function SL:GetConfigTable(name) end
  22. ---GetConfig
  23. ---@param name table
  24. ---@param id table 默认是 id对应的值
  25. ---@param key table 默认是 "id"
  26. ---@param isMul table
  27. function SL:GetConfig(name, id, key, isMul) end
  28. function SL:HasConfig(name, id, key, isMul) end
  29. function SL:GetConfigTwoKeys(name, id1, id2, key1, key2, key2Index) end
  30. function SL:HasConfigTwoKeys(name, id1, id2, key1, key2, key2Index) end
  31. function SL:FindConfigs(name, key, value) end
  32. function SL:GetConfigMultiKeys(name, ...) end
  33. --1#2&2#4
  34. function SL:CfgConvertToNumberMap(s) end
  35. --二维数组 1#2#3|1#4或者 1#2#3|1#4&2#5
  36. function SL:CfgConvertToNumberArray2D(s) end
  37. --三维数组 1#2&3#4|1#4&5#6
  38. function SL:CfgConvertToNumberArray3D(s) end
  39. --1#2#3#4
  40. function SL:CfgConvertToNumberArray(s) end
  41. --8,test0#tes1#test2
  42. function SL:CfgConvertToStringArray(s) end
  43. --二维数组 1#2#3|1#4或者 1#2#3|1#4&2#5
  44. function SL:CfgConvertToStringArray2D(s) end
  45. function this:LogError(...) end
  46. function this:Log(...) end
  47. function this:LogWarning(...) end
  48. function this:LogTable(t, isError, recursive, isTryCatch, pre) end
  49. ---将血量数值转换有单位显示 过十亿(单位:E) 10w-99999w(单位:W
  50. ---@param pointBit number @保留几位小数
  51. function this:HPUnit(hp, pointBit) end
  52. ---获取字符串的byte长度
  53. function this:GetUTF8ByteLen(str) end
  54. ---数字转化为千分位字符串
  55. function this:GetThousandSepString(num) end
  56. ---十六进制转十进制
  57. ---SL:HexToInt("0xBA")
  58. function this:HexToInt(hexStr) end
  59. ---MD5加密
  60. function this:GetStrMD5(str) end
  61. ---@param jsonStr string
  62. ---@param isFilter boolean
  63. ---@return table
  64. ---字符串转json
  65. function SL:JsonDecode(jsonStr, isFilter) end
  66. ---@param jsonData table
  67. ---@param isFilter boolean
  68. ---@return string
  69. ---table转字符串
  70. function SL:JsonEncode(jsonData, isFilter) end
  71. ---@param path string
  72. ---@return boolean
  73. function SL:IsFileExist(path, isLuaFile) end
  74. ---@param str string
  75. ---@param delimiter string
  76. ---@return table
  77. function SL:Split(str, delimiter) end
  78. ---@return string @将数字 num 转换成 xx万、xx亿
  79. function SL:GetSimpleNumber(num, places) end
  80. function SL:TimeFormatToStr(time) end
  81. function SL:SecondToHMS(sec, isToStr, isSimple) end
  82. ---@param url string @链接地址字符串
  83. ---@param httpCB function @回调
  84. function this:HTTPRequestGet(url, httpCB) end
  85. ---@param url string @链接地址字符串
  86. ---@param httpCB function @回调
  87. ---@param suffix string @请求信息 例如 "username=post&password=6789";
  88. ---@param head table @表头 @可选填
  89. function this:HTTPRequestPost(url, httpCB, suffix, head) end
  90. ---中文转换成竖着显示
  91. ---@return string
  92. ---@param str string
  93. function SL:ChineseToVertical(str) end
  94. ---阿拉伯数字转中文大写
  95. function SL:NumberToChinese(num) end
  96. ---获取高16位值
  97. function SL:GetH16Bit(value) end
  98. ---获取低16位值
  99. function SL:GetL16Bit(value) end
  100. ---将十六进制字符串转换为转换为一个颜色对象Color
  101. ---@param hexStr string @ #ff00ff
  102. ---@return Color
  103. function this:ConvertColorFromHexString(hexStr) end
  104. ---深拷贝
  105. ---@param data table
  106. ---@return table
  107. function this:CopyData(data) end
  108. ---哈希表转成按数组
  109. ---@param hashTab table
  110. ---@param sortFunc function
  111. function this:HashToSortArray(hashTab, sortFunc) end
  112. ---加载文件
  113. ---@param file string @文件名 相当于Asset/Lua,后需要整合资源嵌入到热更新
  114. ---@param reload boolean @是否重新加载文件,填true时,会先释放文件再加载
  115. function this:Require(file, className, reload) end
  116. ---拆解文件
  117. ---@param path string @文件路径
  118. ---@param delimiter boolean @指定分隔符
  119. ---@param callback function @拆解回调方法 传入拆分后table参数
  120. function this:LoadTxtFile(path, delimiter, isLua, callback) end
  121. ---计算两坐标间的平方距离
  122. ---@param pt1 Dot2 @起始坐标 GUI:p(x, z) 或 {x = x, z = z}
  123. ---@param pt2 Dot2 @结束坐标 GUI:p(x, z) 或 {x = x, z = z}
  124. function this:GetPointDistanceSQ(pt1, pt2) end
  125. ---计算两坐标间的距离
  126. ---@param pt1 Dot2 @起始坐标 GUI:p(x, z) 或 {x = x, z = z}
  127. ---@param pt2 Dot2 @结束坐标 GUI:p(x, z) 或 {x = x, z = z}
  128. function this:GetPointDistance(pt1, pt2) end
  129. ---计算向量长度
  130. ---@param pt Dot2 @GUI:p(x, z) 或 {x = x, z = z}
  131. function this:GetPointLength(pt) end
  132. ---计算向量长度平方
  133. ---@param pt Dot2 @GUI:p(x, z) 或 {x = x, z = z}
  134. function this:GetPointLengthSQ(pt) end
  135. ---计算两点中心点坐标
  136. ---@param pt1 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  137. ---@param pt2 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  138. function this:GetMidPoint(pt1, pt2) end
  139. ---计算两点相加坐标
  140. ---@param pt1 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  141. ---@param pt2 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  142. function this:GetAddPoint(pt1, pt2) end
  143. ---计算两点相减坐标
  144. ---@param pt1 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  145. ---@param pt2 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  146. function this:GetSubPoint(pt1, pt2) end
  147. ---标准向量化坐标
  148. ---@param pt Dot2 @GUI:p(x, z) 或 {x = x, z = z}
  149. function this:GetNormalizePoint(pt) end
  150. ---计算两向量夹角弧度值
  151. ---@param pt1 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  152. ---@param pt2 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  153. function this:GetPointAngle(pt1, pt2) end
  154. ---计算两向量夹角角度值
  155. ---@param pt1 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  156. ---@param pt2 Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  157. function this:GetPointRotate(pt1, pt2) end
  158. function this:GetNewDot(x, z) end
  159. ---计算自身弧度值
  160. ---@param pt Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  161. function this:GetPointAngleSelf(pt) end
  162. ---计算自身角度值
  163. ---@param pt Dot2 @坐标 GUI:p(x, z) 或 {x = x, z = z}
  164. function this:GetPointRotateSelf(pt) end
  165. ---开启一个定时器
  166. ---@param selfSche table @自己保存的定时器如果没有关闭需要传进来关闭,然后重新创建
  167. function this:Schedule(selfSche, callDelay, callPerTime, callCount, callback, ...) end
  168. ---开启一个单次定时器
  169. function this:ScheduleOnce(time, callback, ...) end
  170. ---停止一个定时器
  171. function this:UnSchedule(scheduleID) end
  172. function this:StartLoopForever(time, func, ...) end
  173. ---存储字符到本地
  174. function this:SetLocalString(key, data) end
  175. --获取存储字符到本地
  176. function this:GetLocalString(key, default) end
  177. ---创建一个角色静态模型
  178. ---@param parent UnityEngine.Transform @父控件对象
  179. ---@param rid number @角色id
  180. ---@param career CommonProtos.Career @职业
  181. ---@param level number @等级
  182. ---@param name string @名字
  183. ---@param mountId number @坐骑id
  184. ---@param action EAction @坐骑id
  185. ---@param behaviour EBehaviourType @坐骑id
  186. ---@param roleData UserProtos.RoleInfoExt @玩家数据
  187. ---@param _poX number @模型的x坐标
  188. ---@param _poY number @模型的y坐标
  189. ---@param _poZ number @模型的z坐标
  190. ---@param _scale number @模型的尺寸
  191. ---@param _rotX number @模型x轴旋转角度
  192. ---@param _rotY number @模型y轴旋转角度
  193. ---@param _rotZ number @模型z轴旋转角度
  194. ---@return Role
  195. function this:UIModel_Create(parent, rid, career, level, name, mountId, action, behaviour, roleData, _poX, _poY, _poZ, _scale, _rotX, _rotY, _rotZ) end
  196. ---@param role Role
  197. function this:UIModel_Recycle(role) end
  198. ---获取当前战斗状态 返回:bool
  199. function this:GetBattleState() end
  200. ---设置战斗状态 参数:bool
  201. function this:SetBattleState(state) end
  202. ---获取全部活动信息
  203. function this:GetAllActivityData() end
  204. ---获取全部活动预告信息
  205. function this:GetAllActivityAnnounceData() end
  206. ---修改角色外观(武器、衣服、特效)
  207. ---@param equipIndex number @装备索引
  208. ---@param state number @ 1展示 0隐藏
  209. function this:Setfeature(equipIndex, equip, state) end
  210. ---播放角色升级特效
  211. function this:PlayUpGradeEffect(id) end
  212. ---@param modelObject SceneEffect 场景特效
  213. ---@param endPos Vector3 结束位置
  214. ---@param time number 飞行时间
  215. ---@param onComplete function 完成回调
  216. function this:EffectDoMove(modelObject, endPos, time, onComplete) end
  217. ---@param modelObject UIModel UI特效
  218. ---@param endPos Vector3 结束位置
  219. ---@param time number 飞行时间
  220. ---@param onComplete function 完成回调
  221. function this:UIEffectDoMove(modelObject, endPos, time, onComplete) end
  222. --------------套装---------------
  223. ---套装激活的装备数量
  224. ---@return number
  225. ---@param cfgId number @套装id
  226. function this:GetSuitActiveCount(cfgId) end
  227. ---获取套装内装备,以及套装效果
  228. ---@return table<number,{cfgId:number,isActive:boolean}>,table<number,{attId:number,attNum:number,isActive:boolean}[]>
  229. function SL:GetSuitEquipInfoList(cfgId) end
  230. ---@param targetId number @不填或者0,会在主角头上跳字
  231. function SL:PlayHurt(text, hurtType, targetId, buffId) end
  232. ---@param item CommonProtos.Item @装备的cfgId
  233. ---@return number @ 0不满足 1满足 穿戴要求
  234. function this:CheckEquipWear(item) end
  235. ---@param wearBarID number 穿戴栏id
  236. function this:GetWearBarsData(wearBarID) end
  237. ---@param career CommonProtos.Career
  238. function this:GeCareerBaseWearBar(career) end
  239. ---@return table<number, table<number, CommonProtos.Item>> @table<穿戴栏id, table<部位, 装备数据>>
  240. function this:GetTotalWearEquips() end
  241. ---@param id number @唯一id
  242. function this:GetWearEquipByItemId(id) end
  243. ---@param equip CommonProtos.Item
  244. function this:PutOnEquip(equip) end
  245. function this:TryPutOnEquip(equip) end
  246. ---@param wearBarId number @装备index
  247. ---@param pos number @部位
  248. function this:TakeOffEquip(wearBarId, pos) end
  249. --获取背包中对应物品的数量
  250. ---@param cfgId number @Item配置表id
  251. function this:GetBagItemCount(cfgId) end
  252. function this:GetItemInfoByItemId(itemId) end
  253. --- 获取cfgId(ItemId)在背包中的索引信息
  254. ---@param cfgId number @Item配置表id
  255. function this:GetSlotBaseOnCfgId(cfgId) end
  256. function this:GetStorageItemCount(cfgId) end
  257. function this:GetCopyDeepUseCellDict() end
  258. -- 获取道具能否放到背包
  259. function this:CanPutToBag(cfgId, count, useCellDict) end
  260. function this:GetCopyDeepUseCellDict1() end
  261. -- 获取仓库能否放到背包
  262. function this:CanPutToBag1(cfgId, count, useCellDict) end
  263. function this:ReqGiveUpItemMessage(index) end
  264. ---@param BagIndex number
  265. ---@param storeIndex number
  266. ---背包拖到仓库请求
  267. function this:ReqBagToStoreMessage(BagIndex, storeIndex) end
  268. function this:ReqDestroyItemMessage(index) end
  269. ---@param useItem number 是否使用道具,1为使用
  270. ---背包扩容
  271. function this:ReqBagAddCapacityMessage(useItem) end
  272. --------------道具基础---------------
  273. ---@param itemData MapProtos.RoundItem
  274. function this:CreateItem(itemData, isPlayEffect) end
  275. function this:RecycleItem(id) end
  276. function this:ReqStoreGiveUpItemMessage(index) end
  277. ---@param index number
  278. ---@param count number
  279. ---@param notice boolean 是否广播到buffer
  280. ---@return boolean @是否使用成功
  281. function this:ReqUseItemMessage(index, count, notice) end
  282. --- 使用道具
  283. ---@param index number
  284. ---@param count number
  285. ---@param notice boolean 是否广播到buffer
  286. ---@return boolean @是否使用成功
  287. function this:UseItem(cfgId, id, count, notice) end
  288. ---@param boxIndex number 使用的宝箱ID
  289. ---@param info BagProtos.SelfChoiceBoxInfo[] 自选道具
  290. ---请求使用自选宝箱
  291. function this:ReqUseSelfChoiceBoxMessage(boxIndex, info) end
  292. --------------音效---------------
  293. function this:PlaySound(groupID, name, loop, volume, target, fadeIn, delay, speed) end
  294. ---@param cfgType EAudioPlayByCfgType 资源表的类型,
  295. ---@param id number 音效类id
  296. ---@param soundType ESoundFieldType 资源表所对应的字段
  297. ---根据资源表,id,对应字段,来播放音效
  298. function this:PlaySoundByTypeAndId(cfgType, id, soundType) end
  299. function this:StopAllAudio() end
  300. ---audio为音频对象
  301. function this:StopSound(audio) end
  302. ---播放动作音效
  303. function this:PlayActionAudio(audioActionId) end
  304. ---播放技能音效
  305. function this:PlaySkillSound(audioSkillId, delay) end
  306. function this:PlayBGM(mapId, isNotMap) end
  307. --------------召唤兽-----------------
  308. ---获取当前召唤兽的技能id
  309. ---@return number
  310. function this:GetSummonBeastsSkillID() end
  311. ---根据技能id获取召唤兽的cfg_pet的表数据
  312. ---@return cfg_pet_column
  313. function this:GetSummonBeastsPetCfgData(SkillId) end
  314. ---获取当前玩家召唤兽信息
  315. ---@return Role
  316. function this:GetMeSummonBeastsRole() end
  317. ---创建一个红点到节点
  318. ---@param handler UIKmlLuaControl
  319. ---@param offset {number,number}
  320. ---@return UIKmlLuaControl
  321. function this:CreateRedPoint(handler, offset) end
  322. ---@param kmlLuaControl UIKmlLuaControl
  323. function this:AddRedPoint(kmlLuaControl) end
  324. ---刷新面板上的红点
  325. ---@param panelName string @面板名字
  326. function this:RefreshPanelALLRedPoint(panelName) end
  327. ---根据条件刷新红点
  328. ---@param condition EConditionType @条件
  329. function this:RefreshPanelALLRedStateKmlByCondition(condition) end
  330. ---增加一个红点条件判定
  331. ---@param condition EConditionType @条件
  332. ---@param callBack function @条件
  333. function this:AddRedDotConditionFunc(condition, callBack) end
  334. ---移除节点上的红点
  335. ---@param targetNode UIKmlLuaControl
  336. function this:HideRedPoint(targetNode) end
  337. -------------地图点传送--------------
  338. ---根据地图id返回传送点列表
  339. ---@return cfg_transfer_point_column[]
  340. ---@return table
  341. ---@param mapId number @cfg_transfer_point表mapId
  342. function SL:GetAllTransferPointById(mapId) end
  343. ---传送等级条件是否满足"checkLevel>=20"
  344. ---@return boolean
  345. ---@param condition string
  346. function SL:CheckCalculateConditionGroup(condition) end
  347. ---地图该点位是否可传送点
  348. ---@return boolean,table
  349. ---@param x number
  350. ---@param y number
  351. ---@param mapId number @地图id
  352. function SL:CheckPointCanTrans(x, y, mapId) end
  353. ---判断玩家当前位置是否看可触发传送
  354. ---@return boolean,table
  355. function SL:CheckPlayerPointCanTrans() end
  356. ---获取传送定点id
  357. ---@return number @cfg_transfer_point表id
  358. function SL:GetTransferPointId() end
  359. ---传送定点id消息
  360. ---@param transId @cfg_transfer_point表id
  361. function SL:SendTransferPointMessage(id) end
  362. ---随机传送
  363. ---@param id
  364. function SL:SendRandomTransPortMessage(id) end
  365. ---传送到NPC附近
  366. function SL:SendTransferToNpcMessage(id, show) end
  367. ---获取玩家背包内可放入快捷栏的道具列表
  368. ---@return CommonProtos.Item[]
  369. function SL:GetIsFastItemList() end
  370. -----------------------道具回收------------------------------
  371. ---获取玩家背包内可回收的道具列表
  372. ---@return CommonProtos.Item[]
  373. function SL:GetCanRecycleItemList(cfgNameStr) end
  374. ---获取玩家自动回收类型设置
  375. ---@return number[]
  376. function SL:GetAutoRecoverTypeSetData(cfgNameStr) end
  377. ---获取玩家是否开启自动拾取勾选
  378. function SL:GetPlayerAutoPickIsOpen() end
  379. ---获取玩家某一id类型勾选状态
  380. ---@return boolean
  381. function SL:GetRecoverTypeState(id, cfgNameStr) end
  382. ---获取玩家是否开启自动回收勾选
  383. function SL:GetPlayerAutoRecoverIsOpen() end
  384. ---设置玩家自动拾取勾选
  385. ---@param isOpen boolean
  386. function SL:SetPlayerAutoPick(isOpen) end
  387. ---设置玩家自动回收勾选
  388. ---@param isOpen string
  389. function SL:SetPlayerAutoRecover(isOpen) end
  390. ---设置玩家自动回收类型勾选
  391. ---@param id number
  392. ---@param isOpen boolean
  393. function SL:SetAutoRecoverType(id, isOpen, cfgNameStr) end
  394. ---请求自动拾取设置更改
  395. ---@param isOpen string
  396. function SL:SendPlayerAutoPickChange(isOpen) end
  397. --怪物和玩家角色的技能与攻击特效显示
  398. ---@param id number
  399. function SL:ReleaseEffect(id) end
  400. --道具的特效显示
  401. ---@param id number
  402. function SL:ShowGroundEffect(id) end
  403. -- 传送特效显示
  404. function SL:ShowTeleportationEffect() end
  405. function SL:RefreshHeight_Me() end
  406. -- 升级特效显示
  407. function SL:ShowUpgradeEffects() end
  408. ---请求自动回收设置更改
  409. function SL:SendPlayerAutoRecoverChange(isOpen) end
  410. ---请求自动回收类型更改
  411. ---@param idList number[]
  412. ---@param changeList boolean[]
  413. function SL:SendPlayerAutoRecoverTypeChange(idList, changeList, cfgNameStr) end
  414. ---请求回收
  415. ---@param indexList BagProtos.RecoveryItemReq @背包内道具的索引
  416. function SL:SendRecoverItem(indexList) end
  417. -----------------------道具分解------------------------------
  418. ---获取玩家背包内可分解的道具列表
  419. ---@return CommonProtos.Item[]
  420. function SL:GetPlayerDecomposeItemList() end
  421. ---获取自动分解类型勾选
  422. ---@return number[]
  423. function this:GetPlayerAutoDecomposeType(cfgNameStr) end
  424. ---设置自动分解类型
  425. ---@param id number @cfg_recovery表的id,具体某一类型的勾选
  426. ---@param open boolean
  427. function this:SetPlayerAutoDecomposeType(id, open, cfgNameStr) end
  428. ---请求分解
  429. ---@param indexList number[] @背包内道具的索引
  430. function SL:SendDecomposeItem(indexList) end
  431. ---打开分解界面
  432. function this:OpenEquipDecomposeUI() end
  433. ---打开锻造界面
  434. ---@param forgeGroupType EForgeGroupType
  435. ---@param equipSlot EEquipSlotType
  436. function this:OpenForgeGroupUI(forgeGroupType, equipSlot) end
  437. function this:GetTaskState(taskId) end
  438. ---@param content string
  439. ---@param showTime number
  440. ---@param noticeType NoticeType
  441. function this:TipMessage(content, showTime, noticeType) end
  442. ---@param text string 文本内容
  443. ---@param fontName string 文本资源名字,比如bravetrials_text
  444. ---@param id number 配置id,默认为114
  445. function SL:ExpTipMessage(text, fontName, id, showTime) end
  446. --{ showTips, ui, callback }
  447. ---@param message KLUICommonTipsData
  448. function SL:CommonTipsMessage(message) end
  449. function SL:CloseCommonTipsMessage() end
  450. ---@param message {str:string,title:string}
  451. function SL:CommonStrTipsMessage(message) end
  452. function SL:SetNpcIcon(npcId, headIcon) end
  453. function this:GetRoleBaseNpcId(cfgId) end
  454. ---根据道具id打开获取途径面板
  455. ---@param _equip_pos string @打开的位置
  456. ---@param _cfgId number @表id
  457. ---@param _id number @唯一id
  458. ---@param _count number @数量
  459. ---@param _ui UIKmlLuaPanelBase @从什么面板打开的
  460. ---@param _callBack function @回调
  461. function SL:CommonItemGetPath(_equip_pos, _cfgId, _id, _count, _ui, _callBack, _item, _info) end
  462. function this:GetInNpcTaskState(npcId) end
  463. ---尝试穿戴装备
  464. function this:WearEquip() end
  465. ---尝试使用道具(飘窗)
  466. function this:UseBoxItem() end
  467. ---隐藏飘窗的所有Item
  468. function this:HideBoxItem() end
  469. function this:DelAllEquip() end
  470. ---添加飘窗对应id的boxItem
  471. function this:AddBoxItem(boxItem) end
  472. ---删除飘窗对应id的Item
  473. function this:DeleteBoxItem(itemId) end
  474. ---刷新快捷提示界面
  475. function this:UpdateUseTipPanel() end
  476. ---获取已显示的飘窗Item
  477. ---@return BoxItemData
  478. function this:GetShowBoxItem() end
  479. ---获取当前可穿戴的装备
  480. function this:GetShowEquip() end
  481. ---移除当前的飘窗Item
  482. function this:ReMoveNowItem() end
  483. ---@param item CommonProtos.Item
  484. function this:GetItemNameByItemData(item) end
  485. ---@param item CommonProtos.Item
  486. function this:GetNeedAttrList(cfgId) end
  487. ---是否技能书类型(表还在修改,暂不定义类型EItemType.SkillBook)
  488. function this:CheckIsSkillBookType(cfgId) end
  489. ---获取装备穿戴基础职业是否满足
  490. ---@param equip CommonProtos.Item
  491. function this:CheckEquipBaseCareer(equip) end
  492. ---与当前身上穿戴装备比较初始评分
  493. ---@param equip CommonProtos.Item
  494. function this:CompareInitGrage(equip) end
  495. ---获取身上与之对比的装备
  496. ---@param cfgId number @装备id
  497. function this:GetCompareEquip(cfgId) end
  498. function this:HideBigMap() end
  499. function this:ShowBigMap() end
  500. function this:showTransferAnimation() end
  501. function this:StartFastPickUp(count, interval, speed) end
  502. function this:StopFastPickUp() end
  503. ---添加好友
  504. ---@param rid number @角色id
  505. function this:AddFriend(rid) end
  506. ---删除好友
  507. ---@param rid number @角色id
  508. function this:DelFriend(rid) end
  509. ---获取指定id玩家是否是好友
  510. ---@param rid number @角色id
  511. function this:CheckIsFriend(rid) end
  512. ---添加黑名单
  513. ---@param rid number @角色id
  514. function this:AddBlackList(rid) end
  515. ---移除黑名单
  516. ---@param rid number @角色id
  517. function this:DelBlackList(rid) end
  518. ---获取指定id玩家是否在黑名单种
  519. ---@param rid number @角色id
  520. function this:CheckIsInBlackList(rid) end
  521. ---获取好友,黑名单, 好友申请列表
  522. ---@param type number @类型
  523. function this:GetFriendData(type) end
  524. ---处理好友申请
  525. ---@param rid number @角色id
  526. function this:HandleAddFriendRequest(rid, agree) end
  527. ---@param guardPet GuardPet
  528. ---@param args {circleSpeed:number,circleRadius:number} circleRadius(参数范围0-1)
  529. function this:SetGuardPetActionArgs(guardPet, args) end
  530. ---@param data{id:number, cfgId:number, x:number, y:number, isUI:boolean}
  531. function this:CreateGuardPet(data) end
  532. ---@param params string[] @快捷指令的数据(参数1为具体的指令,根据不同的指令做出不同的处理)
  533. ---@return boolean @有些指令需要结果
  534. function this:ShortcutDO(params, callBack, menuLayerParam, moveToArriveCallBack) end
  535. function this:LineMoveTo(moveDir, isRun, isTrack, isResetSelectAction) end
  536. function this:ClearDelaySkill() end
  537. ---@param role Player
  538. function this:SetPkIcon(role, text, color, fontName) end
  539. ---@param role Player
  540. ---@param color Color
  541. function this:SetRedNameColorChange(role, color) end
  542. function this:SetActorNameColor(role) end
  543. function this:GetRoleById(roleId) end
  544. ---@param target UIKmlLuaControl
  545. function this:ScreenPointToLocalPointInRectangle(target, x, y) end
  546. ---OpenWaitingUI
  547. ---@param args table @{isTips=true,msg = "断线重连中(1)",waitTimeClose=45,timeOutCallBack=nil}
  548. function this:OpenWaitingUI(args) end
  549. function this:HideWaitingUI() end
  550. function this:GetUICamera() end
  551. ---@param appearList table<EEquipSlotType,number>
  552. function this:RefreshAppear(id, appearList) end
  553. function this:RefreshToShowMonster(id, monsterId) end
  554. function this:RefreshTitle(id, titleId) end
  555. function this:GetColorText(msg, color) end
  556. function this:CampString(str, campLength, postStr) end
  557. function this:MapMove(x, y, cfgMapMoveId, onArrive, includeSelf, isUIShow_MePathMove, toNpc, line) end
  558. ---获取装备的词条
  559. ---@param item CommonProtos.Item
  560. function this:GetEquipEntrys(item) end
  561. ---获取开服天数
  562. ----@return number
  563. function this:GetOpenServerDay() end
  564. ---创建场景中的物品模型
  565. ---@param resPath string
  566. ---@param loadCallback function
  567. ---@return CS.UnityEngine.Transform
  568. function this:CreateSceneItemModel(resPath, loadCallback) end
  569. ---回收场景中的物品模型
  570. ---@param go CS.UnityEngine.Transform
  571. function this:RecycleSceneItemModel(go) end
  572. function this:LoadAsset(path, type, cacheTime) end
  573. function this:ChatInfo_GetChatTypeStr(channel) end
  574. function this:ChatInfo_AddChaItemInfo(v) end
  575. function this:TeamInfo_IsInTeam() end
  576. function this:ChatInfo_GetChaTargetInfo(submitId) end
  577. function this:ChatInfo_GetChatInfo(channel) end
  578. function this:ChatInfo_FriendShow(rid) end
  579. function this:ChatInfo_FriendLookTipShow() end
  580. function this:FriendInfo_SetOtherPlayerEquips(equipIndex) end
  581. function this:FriendInfo_AddIdToAlreadySendFriendReq(rid) end
  582. function this:FriendInfo_GetRecommendFriends() end
  583. function this:FriendInfo_SetNextTime(roleId) end
  584. function this:FriendInfo_GetNextTime(roleId) end
  585. function this:FriendInfo_GetChatHistory(friendId) end
  586. function this:FriendInfo_GetMsg(v) end
  587. function this:TeamInfo_GetLeaderId() end
  588. function this:TeamInfo_GetTeamId() end
  589. function this:MailInfo_GetMailTbl() end
  590. function this:GmInfo_GetDiffuseFlowing() end
  591. function this:UiBoxTipsInfo_GetShowBoxItem() end
  592. function this:TaskInfo_GetPreviewRewardInfo() end
  593. function this:TaskInfo_GetAllTasks() end
  594. function this:TaskInfo_GetAllIds() end
  595. function this:UnionInfo_IsBoos() end
  596. function this:UnionInfo_GetAllNum() end
  597. function this:UnionInfo_IsPowerMan() end
  598. function this:UnionInfo_GetUnionMemberList() end
  599. function this:UnionInfo_SetUnionMemberList(unionMemberInfo) end
  600. function this:CfgSystemSwitchPost_GetSystemBtnGetTaskInfo(careerTblId, taskId) end
  601. function this:CfgShowHideUIPost_GetSystemInfoByPanelName(panelName) end
  602. function this:CfgAttInfoPost_GetCfgBaseTbl() end
  603. ---@param careerInfo CommonProtos.Career
  604. function this:CfgCareerPost_GetCfgCareerId(careerInfo) end
  605. function this:CfgCareerPost_GetCfgCareerName(careerId) end
  606. function this:MainUIManager_SetMovePopoverPos(isMove) end
  607. function this:GetEnterRoleRes() end
  608. function this:GetIsInGame() end
  609. function this:GetComboSkillId() end
  610. function this:GetCurServerName() end
  611. function this:GetServerStruct() end
  612. function this.LoginManager:GetSelectSkillId() end
  613. function this.LoginManager:SetSelectSkillId(id) end
  614. function this.LoginManager:GetLastAccount() end
  615. function this.LoginManager:SetInGame(inGame) end
  616. function this.LoginManager:SetIsLoginCheck(isCheck) end
  617. function this.LoginManager:GetLoginRes() end
  618. function this.LoginManager:GetLoginRes_Role() end
  619. function this.LoginManager:GetOpenId() end
  620. function this.LoginManager:GetLoginRes_UnlockList() end
  621. function this.LoginManager:RemoveRole(message) end
  622. function this.LoginManager:AddRoleRes(message) end
  623. function this.LoginManager:GetCurServer_Sid() end
  624. function this.LoginManager:GetChannelId() end
  625. function this.LoginManager:isSdk() end
  626. function this:GetIsXtra() end
  627. function this:GetIsWebGL() end
  628. function this:MeData_GetLevel() end
  629. ---角色战力
  630. function this:MeData_GetFightValue() end
  631. function this:MeData_GetCoord() end
  632. function this:MeData_GetSex() end
  633. function this:MeData_GetSpecialAttrValue(attrType) end
  634. function this:MeData_GetCareer() end
  635. function this:MeData_CheckStrengthMasterCanActive() end
  636. function this:MeData_CheckAppendMasterCanActive() end
  637. function this:MeData_GetUnionId() end
  638. function this:MeData_GetIndexBaseOnItemId(id) end
  639. function this:MeData_GetId() end
  640. function this:RecycleRole(id) end
  641. function this:Me_StopMove(isRestSelectTarget, isStopMove, OldCoord) end
  642. ---获取货币数量
  643. function this:GetTotalCoinBaseId(cfgId) end
  644. function this:MeData_GetRoleExtInfo() end
  645. function this:MeData_GetTeamId() end
  646. function this:MeData_Check() end
  647. function this:PathMoveTo(dstPos, stopRange, stopCellCount, onArrive, isRun, isTrack, isResetSelectAction, isUIShow_MePathMove, isMoveOver, isFearMove, isSkipCanNotOperCheck, isClickTerrain, monsterId) end
  648. function this:MeData_GetSkill(skillId) end
  649. function this:MeData_GetCfgBaseOnItemId(cfgId) end
  650. function this:MeData_Pos() end
  651. function this:CreatePlayer(message, asycinitImmediately, canNoMe) end
  652. function this:GetTalkBtnVisByNpcId(npcId) end
  653. function this:TalkToNpc(npcId, forFinishTask) end
  654. function this:SelectAttackModel(releaseRange) end
  655. function this:Skill_SetSkillAutoReleaseSwitch(v) end
  656. function this:Me_TriggerToMove(dstPos, stopRange, stopCellCount, onArriveData, isRun, isTrack, isResetSelectAction, isUIShow_MePathMove, isClickTerrain) end
  657. function this:Me_GetSellerIsCanMove() end
  658. function this:MeData_GetEquipByPosAndWearBar(pos, wearBar) end
  659. function this:GetIsExpandSystemFunction() end
  660. function this:AddModelEffect(t) end
  661. function this:CheckOwnFashion() end
  662. function this:GetWearBarAndPosBaseEquipIndex(index) end
  663. function this:CheckOwnTargetWearbarFashion(id) end
  664. function this:ReqMapMonsterStatusMessage(mapId) end
  665. function this.NpcShop:ReqNpcShopInfo(shopId, callback, ui) end
  666. function this.NpcShop:ReqBuyShopGoods(shopId, goodsId, count, callback, ui) end
  667. function this.Mail:ReqDeleteMail(mailIdList) end
  668. function this.Mail:GetAllMail() end
  669. function this.Mail:GetMail(mailIds) end
  670. ---@param career CommonProtos.Career
  671. function this.RoleAtt:GetAttConversionInfoByCareer(career) end
  672. ---请求加点
  673. function this.RoleAtt:ReqDeployAttrPoint(data, n) end
  674. ---请求所有战盟信息
  675. function this:ReqAllUnionMessage() end
  676. ---请求:一键申请
  677. function this:ReqAllApplyMessage() end
  678. ---请求:单个战盟信息
  679. function this:ReqUnionDetailsMessage(unionId) end
  680. ---战盟信息请求
  681. function this:ReqViewUnionMessage() end
  682. ---请求:战盟成员动态信息
  683. function this:ReqUnionMemberDynamicMessage() end
  684. ---请求:退出战盟
  685. function this:ReqQuitUnionMessage() end
  686. ---请求:修改名称
  687. ---@param warAllianceName string
  688. function this:ReqChangeUnionNameMessage(warAllianceName) end
  689. ---请求:创建战盟
  690. ---@param union_name string
  691. ---@param flagIndex number
  692. function this:ReqCreateUnionMessage(union_name, flagIndex) end
  693. ---请求:修改战盟公告
  694. ---@param desTxt string
  695. function this:ReqChangeAnnouncementMessage(desTxt) end
  696. ---请求:踢出战盟成员
  697. ---@param memberRid number
  698. function this:ReqKickOutUnionMemberMessage(memberId) end
  699. ---请求:更换战盟职位
  700. ---@param memberRid number
  701. ---@param type number 1禅让盟主 2设为副盟主 3设为战斗队长 4设为精英 5设为成员
  702. function this:ReqChangePositionMessage(memberRid, type) end
  703. ---请求:修改战盟臂章和名字
  704. ---@param name string
  705. ---@param unionArmband number
  706. function this:ReqUpdateUnionInfoMessage(name, unionArmband) end
  707. ---设置人物头顶的vip名称
  708. function this:SetHeadVipName(rid, fontPath, vipName, offsetX, y, fontOffsetX, isShowLeft) end
  709. function this.Friend:ReqOpenFriendPanelMessage(type) end
  710. function this.Friend:ReqRecommendFriendsMessage() end
  711. function this.Friend:ReqSearchFriendMessage(str) end
  712. function this.Friend:ReqAddFriendMessage(type, rid) end
  713. function this.Friend:ReqOtherRoleInfoMessage(otherId, type) end
  714. function this.Friend:ReqFriendLogsMessage(type, targetId) end
  715. function this.Bag:GetHorAndVetWithInt(index) end
  716. function this.Bag:SortItemList(itemList) end
  717. function this.Bag:GetIndexWithPageHorAndVet(page, hor, vet) end
  718. function this.StoreHouse:GetIndexWithPageHorAndVet(page, hor, vet) end
  719. function this.Scene:SetCustomResistanceData(leftBottom, rightTop) end
  720. function this.Scene:SetTransMapMoveToPointCallbackFunc(func) end
  721. function this.Scene:GetFindNearNpcAvilPoint(findDot2, range, includeSelf) end
  722. function this.Scene:SetSelectSkill(skillId) end
  723. function this.Scene:SetSceneName(name) end
  724. function this.Time:GetServerTime() end
  725. function this.Time:FormatTimeHMS(time) end
  726. --解析json
  727. function this:DecodeJson(txt) end
  728. ---@param itemInfo CommonProtos.Item
  729. function this.Equip:ShowCantEquipTip(itemInfo) end
  730. ---请求:仓库取出
  731. ---@param storeIndex number
  732. function this.Equip:ReqStoreTakeButtonMessage(storeIndex) end
  733. ---请求:放入仓库
  734. ---@param bagIndex number
  735. ---@param storePage number
  736. function this.Equip:ReqBagPutStoreButtonMessage(bagIndex, storePage) end
  737. function this.Equip:GetIndexBaseOnItemId(itemId) end
  738. function this.MainCamera:GetCamera() end
  739. function this.MainCamera:ResetCameraToMain() end
  740. function this:SetOffset2CSPreScene(offset) end
  741. function this:ComputeRole2MainCamera() end
  742. function this:UpdateMainCameraPos() end
  743. function this.Constructor_In:UIEffect() end
  744. function this.Union:GetApplyListInfo() end
  745. function this.Union:ReqUnionSettingMessage(autoAccept, needLevel, fightValue) end
  746. function this.Union:ReqAllAgreeMessage() end
  747. function this.Union:ReqAllRejectMessage() end
  748. function this.Union:ReqAgreeUnionApplyMessage(targetRid, isAgree) end
  749. function this.Union:ReqApplyJoinUnionMessage(unionId) end
  750. function this.SceneEditorManager:SetProgressState(pType) end
  751. function this:HideAllKmlPanel() end
  752. function this.PCSkillInfoMgr:GetPcSkillInfoMgr() end
  753. ---是否能释放该技能
  754. ---@param targetId @目标id
  755. ---@param skillId @技能id
  756. ---@param level @技能等级
  757. ---@param skillOwnerId @技能拥有者Id
  758. function this.Skill:IsCanReleaseSkill(targetId, skillId, level, skillOwnerId) end
  759. ---@param skillId number @技能id
  760. function this:ReqUpSkillMessage(skillId) end
  761. ---创建场景特效
  762. ---@param effectPath @特效路径
  763. ---@param loadEffectCallBack @创建成功回调
  764. function this:CreateSceneEffect(effectPath, loadEffectCallBack) end
  765. ---回收场景特效
  766. ---@param go UnityEngine.GameObject
  767. function this:RecycleSceneEffect(go) end
  768. function this.Role:SetShowHurtLabel(func) end
  769. function this.NetManager_Req:ReqRandomRoleNameMessage(careerId, dissatisfiedName) end
  770. function this.NetManager_Req:ReqCreateRoleMessage(roleName, sex, career, inviteCode) end
  771. function this.NetManager_Req:ReqUnLockUserCareerMessage(uid, careerId) end
  772. function this.NetManager_Req:ReqRemoveRoleMessage(rid) end
  773. function this.NetManager_Req:ReqEnterRoleMessage(rid, clientType, width, height, reconnect, isSimulator) end
  774. function this.SDKMgr:SubmitGameData(dataType, eventType, roleId, roleName, roleLevel, moneyNum, unionId, unionName, figheValue, vipLevel, additionalParameters) end
  775. function this.Main:GetVersion() end
  776. function this.Main:IsEditor() end
  777. function this.Main:IsAndroid() end
  778. function this.Main:IsIos() end
  779. function this.Main:IsLocalServer() end
  780. function this.Main:IsWindows() end
  781. function this.Main:IsWebGL() end
  782. function this.Main:LoadAndUpdateGroup(gameId, groupname, engineVersion, gmResVersion, updateCalLBack, needRestartGameCallBack) end
  783. function this.Main:Restart() end
  784. function this.NetManager:PrintMessage(id, message) end
  785. function this.NetManager:Close() end
  786. function this:Async_SwitchAsync(isAsync, func, ...) end
  787. function this.UIManager:ShowNotHideUI(panelName, args, animation, isSync) end
  788. function this.UIManager:Hide(name, animation, isSwitchPnl) end
  789. function this.UIManager:ShowFunctionUI(panelName, args, animation, isSync) end
  790. function this.UIStaticParameter:GetDeleteServerUrl() end
  791. function this.UIStaticParameter:GetCreateServerUrl() end
  792. function this:logNoFlag(...) end
  793. function this.Http:RequestWWW(url, form, callBack, callBackData, errorCallBack) end
  794. function this.GamePlay:SetGameInfo(UID, name, roleId, roleName, serverID, platformID, gameid, serverName, boxUID) end
  795. function this.LoginInfo:IsSDK() end
  796. function this.LoginInfo:IsBoxSDK() end
  797. function this.LoginInfo:IsBox() end
  798. function this.LoginInfo:IsOutSDK() end
  799. function this.SceneManager:Load(path, callback) end
  800. function this.Queue:New() end
  801. function this.BtTree:BehaviorTree() end
  802. function this.BtTree:BehaviorEvent() end
  803. ---设置角色活动阵营,排名
  804. function this:SetRoleActivityCamp(rid, camp, rank) end
  805. function this:InitErrorLogTool() end
  806. ---@param fieldTbl table<string,string|number>
  807. function this:GetWWWForm(fieldTbl) end
  808. function this:AddCallBack2FontFilterMode(val) end
  809. function this.LauncherUI:Close() end
  810. function this.LauncherUI:RemoveAllLuaDelegate() end
  811. function this.LauncherUI:IsOpen() end
  812. function this:RemoveMonoLuaDelegate() end
  813. function this:RestartMaxTick(maxLimit) end
  814. function this:GetCommandLineArgs() end
  815. function this:LogoutAccount() end
  816. function this:Login() end
  817. function this:LoginAfterInitSdk() end
  818. function this:RestartApplication() end
  819. function this:SetCursor(tex, offset) end
  820. function this:GameObjectFind(path) end
  821. function this:GameObjectInstantiate(obj, parent, worldPositonStays) end
  822. function this:DestroyObjectImmediate(obj, allowDestroyingAssets) end
  823. function this:CtorResourceLoadTracker() end
  824. function this:IsSceneEditorOperTypeClose() end
  825. ---@param obj UnityEngine.GameObject|UnityEngine.Component
  826. ---@return Vector4
  827. function this:GetWorldCorners(obj) end
  828. ---@param obj UnityEngine.GameObject|UnityEngine.Component
  829. ---@return UnityEngine.UI.Button
  830. function this:GetButtonComp(obj, path) end
  831. ---@param obj UnityEngine.GameObject
  832. ---@return UnityEngine.RectTransform
  833. function this:GetRectTransfomComp(obj, path) end
  834. ---@param obj UnityEngine.GameObject
  835. ---@return TCFramework.RectGuideMask
  836. function this:GetRectGuideMaskComp(obj, path) end
  837. function this.MapMaskMgr:SetRect(v1, v2) end
  838. function this.MapMaskMgr:SetAlertRect(v1, v2) end
  839. function this.MapMaskMgr:SetAlertAlpha(alpha) end
  840. function this.MapMaskMgr:DestroyEntity() end
  841. ---@return
  842. function this:CreateCSDictionary() end
  843. ---@param leanType ELeanTweenType
  844. ---@param setter fun(param:number)
  845. ---@return LTDescr
  846. function this.LeanTween:To(from, to, duration, setter, leanType, onComplateFunc) end
  847. function this.CSPreScene:LinearCastGround(camera) end
  848. function this.CSPreScene:RemoveAllLuaDelegate() end
  849. ---元变量实现
  850. --获取
  851. function this:GetMetaValue(key, param1, param2, ...) end
  852. --设置
  853. function this:SetMetaValue(key, param1, param2, ...) end
  854. --打印所有元变量Key
  855. function this:PrintMetaKey() end
  856. --打印所有能获取的元变量
  857. function this:PrintAllMetaValue() end
  858. ---@param conditionStr string @条件组合 示例 CheckLevel>=90&(CheckJob=1|CheckJob=2)
  859. ---@return boolean @条件组合是否达到条件
  860. function this:CheckCondition(conditionStr) end
  861. ---@param funcType EReplaceEngineFunc
  862. ---@param func fun(career)
  863. function this:SetReplaceEngineFunc(funcType, func) end
  864. ---@param career CommonProtos.Career
  865. ---@return cfg_career_column
  866. function this:GetCareerTbl(career) end
  867. ---@param colorID number @颜色表ID
  868. function this:GetColorCfg(colorID) end
  869. ---聊天界面(手机端)关闭
  870. function this:CloseChatUI() end
  871. ---聊天界面(手机端)打开
  872. function this:OpenChatUI(_type) end
  873. ---设置聊天综合频道不显示的聊天类型
  874. function this:SetCloseChatType(close_list) end
  875. --- 发送聊天消息
  876. ---@param channel number 0系统,1战斗,2世界,3当前,4战盟,5招募,6附近,7队伍,8私聊,9好友
  877. ---@param message string 消息内容
  878. ---@param toRid number 私聊id
  879. ---@param lidList table 道具列表
  880. function this:SendChat(channel, message, toRid, lidList) end
  881. ---关闭添加好友界面
  882. function SL:CloseAddFriendUI() end
  883. ---打开添加好友界面
  884. function SL:OpenAddFriendUI() end
  885. ---打开关闭黑名单界面(目前没有关闭黑名单,直接关闭好友)
  886. function SL:OpenAddBlackListUI() end
  887. ---屏幕坐标转化为世界坐标
  888. function SL:ConvertScreen2WorldPos(screenX, screenY) end
  889. ---世界坐标转化为屏幕坐标
  890. function SL:ConvertWorldPos2Screen(worldX, worldY) end
  891. function SL:RaycastScene(x, y, layerMask) end
  892. ---获取视野内的怪物数量
  893. ---@param noPetOfMainPlayer boolean @true: 不包含自己的宠物, 反之包含
  894. ---@param noPetOfNetPlayer boolean @false: 包含别人的宠物, 反之不包含
  895. function SL:FindMonsterInCurrViewField(noPetOfMainPlayer, noPetOfNetPlayer) end
  896. ---获取视野内的玩家
  897. ---@param noMainPlayer boolean @false: 包含自己, 反之不包含
  898. function SL:FindPlayerInCurrViewField(noMainPlayer) end
  899. ----读邮件
  900. ---@param mailId table @邮件ID列表
  901. function this:RequestReadMail(mailIds) end
  902. ----邮件全部提取
  903. function this:GetAllMailItems() end
  904. ----邮件提取
  905. ---@param mailId number @邮件ID
  906. function this:GetMailItems(mailId) end
  907. ---提交任务
  908. ---@param taskId number @任务ID
  909. function this:ReqSubmitTaskMessage(taskId, multiple) end
  910. --打开背包界面
  911. function this:OpenKLBagPanel() end
  912. --打开加点界面
  913. function this:OpenKLAttrPanel() end
  914. --打开快捷使用UI
  915. function this:OpenUseEquipBagTipsUI() end
  916. --打开活动预告UI
  917. function this:OpenActivityTipsUI() end
  918. --打开气泡UI
  919. function this:OpenBubbleTipsUI() end
  920. --显示气泡提醒
  921. --@param id number cfg_popover表id
  922. function this:AddBubbleTips(id) end
  923. --删除气泡提醒
  924. --@param id number cfg_popover表id
  925. function this:DelBubbleTips(id) end
  926. ---开启id限时活动预告提示
  927. ---@param id number cfg_activity_rule表id
  928. ---@param name string 活动名称
  929. ---@param icon string 活动图标
  930. ---@param type number 类型:预告0/进行中1
  931. ---@param endtime number 结束倒计时(单位毫秒)
  932. function this:OpenActivityTimingTask(id, name, icon, type, endtime) end
  933. ---关闭id限时活动预告提示
  934. ---@param id number cfg_activity_rule表id
  935. function this:CloseActivityTimingTask(id) end
  936. ---关闭所有限时活动预告提示
  937. function this:CloseActivityTimingTaskAll() end
  938. ---关闭同类型限时活动预告提示
  939. ---@param type number 类型:预告0/进行中1
  940. function this:CloseActivityTimingTaskByType(type) end
  941. ---快捷提示相关判断接口
  942. ---装备快捷提示条件是否满足 返回值 bool
  943. ---@param bagItem BagProtos.BagItem (Event.BagInfo_Change 事件里获取)
  944. function this:CheckIsShowEquipBoxTip(bagItem) end
  945. ---技能书快捷提示条件是否满足
  946. function this:CheckIsShowSkillBoxTip() end
  947. ---属性点(id:10030007)快捷提示条件是否满足 返回值 bool
  948. function this:CheckIsShowAttributeBoxTip() end
  949. --本地公告展示
  950. --widget 公告对象
  951. --data 公告参数
  952. function SL:ShowLocalNoticeByType(widget, data) end
  953. --释放技能
  954. function SL:RequestLaunchSkill(skillID) end
  955. ------------------------------队伍消息--------------------------------------------------
  956. --请求:创建队伍
  957. function SL:RequestCreateTeam() end
  958. --请求:拒绝组队邀请 0:拒绝
  959. function SL:RequestRefuseTeamInvite(leaderRid) end
  960. --请求:同意组队邀请 1:同意
  961. function SL:RequestAgreeTeamInvite(leaderRid) end
  962. --请求:申请入队
  963. function SL:RequestApplyAgree(teamID) end
  964. --请求:入队申请列表
  965. function SL:RequestApplyData() end
  966. --请求:附近队伍列表
  967. function SL:RequestNearTeam() end
  968. --请求:退出队伍
  969. function SL:ReqQuitTeam() end
  970. --请求:邀请加入队伍
  971. function SL:ReqSendTeamInvitation(rid, type) end
  972. --请求:同意入队申请
  973. function SL:ReqAgreeReplyApply(rid) end
  974. --请求:拒绝入队申请
  975. function SL:ReqRefuseReplyApply(rid) end
  976. --请求:踢出队伍
  977. function SL:ReqKickOutMember(rid, type) end
  978. --请求:转移队长
  979. function SL:ReqChangeCaptain(rid, type) end
  980. --请求:附近玩家列表
  981. function SL:ReqPlayerList(type) end
  982. --请求:组队参数
  983. function SL:ReqTeamInfo() end
  984. --请求:一键清除组队请求列表
  985. function SL:ReqClearAllRequestList() end
  986. ---是否等级限制进入地图
  987. ---@param mapid number
  988. function SL:MapLevelConditionCheck(mapMoveId) end
  989. ---是否会员等级限制进入地图
  990. ---@param mapid number
  991. function SL:MapVipCondtitionCheck(mapid) end
  992. ---传送到地图传送点
  993. ---@param mapid number
  994. ---@param line number
  995. ---@param mapMoveId number
  996. function SL:MapTransfer(mapId, line, mapMoveId) end
  997. ---传送到地图位置 x y
  998. ---@param mapMoveId number
  999. ---@param x number
  1000. ---@param y number
  1001. ---@param range number
  1002. ---@param type number
  1003. ---@param line number
  1004. function SL:MapTransferXY(mapMoveId, x, y, range, type, line) end
  1005. ---获取目标地图名称
  1006. ---@param mapId number
  1007. function SL:GetDestinationMapName(mapId) end
  1008. function this:GetEquipValue(key, param1, param2, ...) end
  1009. function this:GetPosItemInfo(equip_pos, cfgId, id) end
  1010. function this:GetEquipWearBarIdPos(id) end
  1011. function this:GetBagIndex(id) end
  1012. --装备tips
  1013. ---@return UIKmlLuaPanelBase
  1014. function SL:OpenEquipTips(_equip_pos, _cfgId, _id, _info, isMulti) end
  1015. --装备对比tips
  1016. function SL:OpenEquipTipsComparsion(_cfgId, _id, _info) end
  1017. --道具tips
  1018. ---@return UIKmlLuaPanelBase
  1019. function SL:OpenItemTips(_equip_pos, _cfgId, _id, _count, _info, isMulti) end
  1020. function SL:OpenUnion() end
  1021. function this:CloseTips() end
  1022. --打开tips
  1023. ---@return UIKmlLuaPanelBase
  1024. function SL:OpenTips(_equip_pos, _cfgId, _id, _count, item, info, isMulti) end
  1025. ---怪物是否显示血条
  1026. function SL:MonsterIsShowHP(_cfgId) end
  1027. ---打开boss血条
  1028. function SL:OpenBossHp(_id) end
  1029. ---关闭boss血条
  1030. function SL:CloseBossHp() end
  1031. function SL:GetMapMonsterStatus() end
  1032. ---获得boss掉落组所有数据
  1033. function SL:GetBossALlDrop(cfgId) end
  1034. --主界面技能按钮区域切换显示 false 显示技能,true 显示其他按钮
  1035. function SL:OpenGuideEnter(isExpand) end
  1036. ---@显示技能Tip
  1037. function this:ShowSkillTip(skillId, skillLevel) end
  1038. --打开效率面板
  1039. function SL:OpenEfficiencyUI() end
  1040. --关闭效率面板
  1041. function SL:CloseEfficiencyUI() end
  1042. ---@param goodsId number 商品id
  1043. ---@param count number 购买数量
  1044. function this:RequestBuyShopMallGoods(goodsId, count) end
  1045. function this:RequestShopMallGoodsInfo(tabId) end
  1046. ---@param equip CommonProtos.Item
  1047. function this:GetEquipSkills(equip) end
  1048. ---@param panelList table
  1049. function this:KLSetBlockedFunction(panelList) end
  1050. ---@param panelName string
  1051. ---@return boolean
  1052. function this:IsBlockedFunction(panelName) end
  1053. ---npc对话框
  1054. function this:OpenNPCTalk(content) end
  1055. ---NPC名称位置偏移
  1056. function this:NpcNameOffest(cfgid, x, y) end
  1057. ---创建怪物模型
  1058. ---@param cfgId number @怪物表id
  1059. ---@param scale table @{1,1,1}缩放
  1060. ---@param rotation table @{0,180,0}旋转
  1061. function this:CrateMonsterModel(uiParent, cfgId, scale, rotation, callBack) end
  1062. ---退出选角界面
  1063. function this:QuitSelectRoleUI() end
  1064. ---退出游戏
  1065. function this:QuitGame() end
  1066. ---恢复默认基础设置
  1067. function this:ReplyDefaultBaseSetting() end
  1068. ---恢复默认显示设置
  1069. function this:ReplyDefaultShowSetting() end
  1070. ---恢复拾取设置
  1071. function this:ReplyDefaultPickUpSetting() end
  1072. ---复制邀请码
  1073. function this:CopyInviteCode(code) end
  1074. ---弹出获得奖励弹窗
  1075. ---@param data @格式为 itemid=数量 的table
  1076. ---@param type number @为0为奖励领取,其它标题为任务奖励,若自定义标题设置则改项无效
  1077. ---@param atlas string @自定义标题图集,可缺省
  1078. ---@param src string @自定义标题图名称,可缺省
  1079. ---@param isFomat boolean @道具数量是否格式化
  1080. function this:OpenRewardTips(data, type, atlas, src, isfomat) end
  1081. ---弹出获得奖励(传参为itemList)
  1082. ---@param itemList CommonProtos.Item[] @格式为 itemid=数量 的table
  1083. ---@param type number @为0为奖励领取,其它标题为任务奖励,若自定义标题设置则改项无效
  1084. ---@param atlas string @自定义标题图集,可缺省
  1085. ---@param src string @自定义标题图名称,可缺省
  1086. function this:OpenRewardTipsByItemList(itemList, type, atlas, src) end
  1087. ----获得仓库道具index
  1088. function this:GetDepotsIndex(id) end
  1089. ----获得仓库当前打开页数
  1090. function this:GetDepotsCurPage() end
  1091. ----通过界面名获取系统数据
  1092. function this:GetSystemInfoByPanelName(panelName) end
  1093. ---设置是否自动反击
  1094. function this:SetIsAutoCounterattack(autoCounterattack) end
  1095. ----自动反击
  1096. function this:AutoCounterattack(isStart) end
  1097. ----系统功能入口显示
  1098. function this:ControlSystemPortalVisible(path, isVisible) end
  1099. ---开始挂机
  1100. function this:StartOnHook(isReq, isHandCall, attackMonsterCfgId) end
  1101. ---暂停挂机
  1102. ---@param isImmediateRecoverOnHook boolean
  1103. ---@param waitTime number
  1104. function this:PauseOnHook(isImmediateRecoverOnHook, waitTime) end
  1105. ---停止挂机
  1106. function this:StopOnHook(isReq, noStopAction) end
  1107. function this:StopScriptAutoMove() end
  1108. ---寻路(支持跨地图)
  1109. ---@param monsterId number 寻路过程中碰到目标怪物配置id会回调目标位置,可以再次寻路到目标位置进行战斗
  1110. function this:Pathfinding(mapId, line, x, y, arriveFunc, monsterId) end
  1111. function this:SearchPath(oldCoord, dstPos, stopRange, stopCellCount) end
  1112. ---根据类型打开设置界面指定的页签
  1113. function this:OpenSettingPanel(settingType) end
  1114. ---根据ShopId打开对应的NPC商店界面
  1115. ---@param shopId number @NPCShop表中的ShopId
  1116. function this:OpenNPCShop(shopId) end
  1117. ---根据ShopId请求NPC商店页签下的商品信息
  1118. ---@param shopId number @NPCShop表中的ShopId
  1119. function this:RequestNPCShopGoodsInfo(shopId) end
  1120. ---设置主界面显示时需要屏蔽显示的界面
  1121. ---@param panelName string
  1122. ---@param isBlock boolean
  1123. function this:SetMainUIBlockDisplayUI(panelName, isBlock) end
  1124. ---该界面是否是主界面显示时需要屏蔽显示的界面
  1125. ---@param panelName string
  1126. ---@return boolean
  1127. function this:IsMainUIBlockDisplayUI(panelName) end
  1128. ---请求骑乘坐骑
  1129. ---@param mountId number
  1130. function this:ReqRideMount(mountId) end
  1131. ---请求取消骑乘坐骑
  1132. ---@param mountId number
  1133. function this:ReqCancelRideMount(mountId) end
  1134. ---请求穿戴坐骑道具
  1135. ---@param rid number
  1136. ---@param index number
  1137. function this:ReqPutOnMountItem(rid, index) end
  1138. ---请求脱下坐骑
  1139. ---@param mountId number
  1140. function this:ReqTakeOffMount(mountId) end
  1141. ---请求上马
  1142. ---@param rid number
  1143. ---@param mountId number
  1144. ---@param isHand boolean
  1145. function this:ReqOnMount(rid, mountId, isHand) end
  1146. ---请求下马
  1147. ---@param rid number
  1148. ---@param mountId number
  1149. ---@param isHand boolean
  1150. function this:ReqDownMount(rid, mountId, isHand) end
  1151. ---公告提示接口
  1152. ---@param messageData {id:number,contentFromServer:boolean ,content:string 缺省则读表, params:string[] 可缺省}(配置表id,是否来自服务器,内容,替换参数)
  1153. function this:MessageTip(messageData) end
  1154. ---死亡时不关闭界面
  1155. function this:KeepOpenPanel(panelName, isOpen) end
  1156. --------------创建活动掉落道具---------------
  1157. ---@param cfgId number
  1158. ---@param dropId string
  1159. ---@param x number
  1160. ---@param y number
  1161. function this:CreateActivityDropItem(cfgId, dropId, x, y) end
  1162. --------------给玩家附加装备---------------
  1163. ---@param rid number
  1164. ---@param cfgId number
  1165. function this:AttachActivityWeapon(rid, cfgId) end
  1166. ---设置阻挡点
  1167. ---@param x number
  1168. ---@param z number
  1169. ---@param isAdd boolean
  1170. function this:SetResistancePoint(x, z, isAdd) end
  1171. ---视野里的人全部变身成怪物
  1172. ---@param isToMonster boolean
  1173. ---@param toMonsterId table
  1174. function this:SetAllViewPlayerToMonster(isToMonster, toMonsterId) end
  1175. ---@param sceneId number
  1176. function this:CellTrigger(sceneId, x, y, roleId) end
  1177. ---@充值通用接口
  1178. ---@param rechargeTbl cfg_recharge_column @充值表
  1179. ---@param count number @充值数量
  1180. ---@param extraParams table @透传参数(可选参数
  1181. function this:SDKPay(rechargeTbl, count, extraParams) end
  1182. ---刷新头顶显示
  1183. ---@param isShowHead boolean
  1184. function this:RefreshHead(roleId) end
  1185. ---@param baseUI UIKmlLuaPanelBase
  1186. function this:LoadUIAssetAsync(path, baseUI, cacheTime) end
  1187. --设置活动阵营名列表
  1188. ---@param campNameList table
  1189. function this:SetCampNameList(campNameList) end
  1190. --设置是否显示角色称号
  1191. function this:SetIsShowRoleTitle(isShowRoleTitle) end
  1192. --设置角色职业默认显示模型id
  1193. ---@param baseCareer number
  1194. ---@param modelCfgId number
  1195. function this:SetRoleCareerDefaultModelCfgId(baseCareer, modelCfgId) end
  1196. --清空角色职业默认显示模型id
  1197. function this:ClearRoleCareerDefaultModelCfgIdList() end
  1198. --跳转到外部网页
  1199. ---@param url string 网址
  1200. function this:OpenURL(url) end
  1201. ---显示大爆飘字
  1202. ---@param str string 大爆数值
  1203. function this:ShowBigBangFloatingWords(str) end
  1204. ---请求领取盒子特权奖励
  1205. function this:ReqReceivePrivilegeGiftMessage() end
  1206. ---屏幕震动
  1207. ---@param count number 震动次数
  1208. ---@param level number 震动等级
  1209. function this:ScreenVibration(count, level) end
  1210. ---清空系统功能任务状态
  1211. function this:ClearSystemFunctionState() end
  1212. ---获得开服第几天的时间戳(毫秒
  1213. ---@param days number 开服第几天
  1214. ---@param hour number 第几个小时 0代表0点
  1215. function this:GetEndTimeStamp(days, hour) end
  1216. ---获取服务器当天剩余时间
  1217. function this:GetCurDayEndTime() end
  1218. ---根据传入的时间戳,获取传入时间戳当天0点的时间戳
  1219. function this:GetThatDayZeroTimeStampByTimeStamp(timeStamp) end
  1220. ---设置自动战斗目标
  1221. function this:SetHookAttackTargetId(rid) end
  1222. ---选中服务器
  1223. function this:DispatchSelectServer(server) end
  1224. function this:GetServerInfoByRole(sid) end
  1225. function this:GetRecentServer() end
  1226. function this:GetServerRoleList() end
  1227. function this:GetServerList() end
  1228. ---赤色要塞领取奖励
  1229. function this:ReqReceivePreviewRewardMessage(cfgId) end
  1230. function this:GetIsPcPlatform() end
  1231. function this:LUA_EVENT_OPENMAINSYSTEMFUNCTION(message) end
  1232. function this:ReqTidyItemMessage() end
  1233. ---@param toIndex number
  1234. ---@param fromIndex number
  1235. function this:ReqSwapItemMessage(toIndex, fromIndex) end
  1236. function this:ReqFirstRechargeViewMessage() end
  1237. ---@param roleId number 玩家ID
  1238. function this:ReqTradeMessage(roleId) end
  1239. function this:ReqResetAttrPointMessage() end
  1240. function this:ReqUseLetterMessage() end
  1241. function this:ReqFindRidByNameMessage(name) end
  1242. function this:ReqSwapStoreItemMessage(fromIndex, toIndex) end
  1243. function this:ReqStoreToBagMessage(storeIndex, BagIndex) end
  1244. ---@param useItem number 是否使用道具
  1245. ---@param curStorePage number 当前仓库页码
  1246. function this:ReqStoreAddCapacityMessage(useItem, curStorePage) end
  1247. ---@param useItem number 是否使用道具
  1248. function this:ReqStoreAddPageMessage(useItem) end
  1249. ---@param storePage number
  1250. function this:ReqTidyStoreItemMessage(storePage) end
  1251. function this:ReqReceiveEfficiencyRewardMessage(id) end
  1252. function this:ReqGetMailListMessage() end
  1253. ---请求复活
  1254. function this:ReqPlayerReliveMessage(id, type) end
  1255. ---设置是否显示角色头顶的血条
  1256. function this:ShowOrHideHeadHp(rid, isShow) end
  1257. function this:ReqCdKeyMessage(cdkey) end
  1258. function this:ReqCreateInviteCodeMessage() end