PGRData/Script/matrix/xdlcfight/character/1007.lua
2024-09-01 22:49:41 +02:00

55 lines
No EOL
1.6 KiB
Lua

local XCharKalieP1 = XDlcScriptManager.RegCharScript(1007, "XCharKalieP1") --一阶卡列(爆裂)
local XNpcInteraction = require("XDLCFight/Level/Common/XNpcInteraction")
local XAnchorVisualization = require("XDLCFight/Level/Common/XAnchorVisualization")
local Hunt01BossFight = require("XDLCFight/Level/Common/XLevelScriptHunt01")
local FuncSet = CS.StatusSyncFight.XFightScriptFuncs
local _skillIdMap = {
Interaction = 100719,
}
---@param proxy StatusSyncFight.XScriptLuaProxy
function XCharKalieP1:Ctor(proxy)
self._proxy = proxy
end
function XCharKalieP1:Init()
self._npc = self._proxy:GetSelfNpcId() ---@type number
self._interaction = XNpcInteraction.New(self._proxy, self._npc, _skillIdMap.Interaction) ---@type XNpcInteraction
self._anchorVisual = XAnchorVisualization.New(self._npc)
self._bossFight = Hunt01BossFight.New(self._proxy,self._npc)
end
---@param dt number @ delta time
function XCharKalieP1:Update(dt)
self._interaction:Update(dt)
self._anchorVisual:Update(dt)
self._bossFight:Update(dt)
end
---@param eventType number
---@param eventArgs userdata
function XCharKalieP1:HandleEvent(eventType, eventArgs)
--XLog.Debug(string.format("------XCharKalieP1 Npc:%d HandleEvent etype:%d", self._npc, eventType))
self._interaction:HandleEvent(eventType, eventArgs)
self._bossFight:HandleEvent(eventType, eventArgs)
end
function XCharKalieP1:Terminate()
end
function XCharKalieP1:OnResLoadComplete()
end
local _effectRefTable = {
}
function XCharKalieP1.GetEffectRefTable()
return _effectRefTable
end
return XCharKalieP1