1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- LSK_Test = {}
- LSK_Test.__index = LSK_Test
- local this = {}
- -- ------------------------------------------------------------- --
- -- 测试入口 @lua l_test_main
- function l_test_main(actor)
- jprint("-------- lua test main function --------")
- end
- -- ------------------------------------------------------------- --
- -- 校验是否可以进入跨服地图
- -- @lua l_test_chack_is_can_enter_cross_map 21000
- function l_test_chack_is_can_enter_cross_map(actor, map_id)
- local ret = CrossMap.canEnter(actor, map_id)
- this.jprint("检查是否可以进入跨服地图:", map_id, "result:", ret)
- end
- -- 初始化圣域BOSS缓存数据
- -- @lua l_test_sanctuary_boss_init_cache
- function l_test_sanctuary_boss_init_cache()
- SanctuaryBoss.initBossState()
- end
- -- 结算战盟更换盟主
- -- @lua l_test_finish_union_change_leader
- function l_test_finish_union_change_leader(actor)
- UnionChangeLeader.RunForLeader.finishRunforLeaderActor()
- end
- -- 战盟臂章最大等级缓存
- -- @lua l_test_union_armbands_init_cache
- function l_test_union_armbands_init_cache()
- UnionArmbands.serverStart()
- end
- -- 发起定点传送
- -- @lua l_test_transfer_within_map 210 180
- function l_test_transfer_within_map(actor, x, y)
- MapMoveTransfer.transferWithinMap(actor, { x, y })
- end
- -- 充值月卡礼包7001
- -- @lua l_month_gift_recharge_event 7001 1401
- function l_month_gift_recharge_event(actor, param, id)
- MonthGiftPack.rechargeEvent(actor, { ['parameter'] = param, ['id'] = id })
- end
- -- 领取月卡每日礼包
- -- @lua l_month_gift_req_recharge 1401
- function l_month_gift_req_recharge(actor, id)
- MonthGiftPack.reqRechargeAction(actor, _, "reward", { ["id"] = id })
- end
- -- ------------------------------------------------------------- --
- this.log_open = true
- function this.debug(...)
- if not this.log_open then
- return
- end
- gameDebug.print(...)
- end
- function this.jprint(...)
- if not this.log_open then
- return
- end
- if param == nil then
- param = "error! 输出内容为空. nil"
- end
- jprint(...)
- end
|