PGRData/Script/matrix/xdlcfight/character/1002.lua

55 lines
1.6 KiB
Lua
Raw Normal View History

2024-09-01 20:49:41 +00:00
local XCharLuciaP1 = XDlcScriptManager.RegCharScript(1002, "XCharLuciaP1") --一阶露西亚(红莲
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 = 100219,
}
---@param proxy StatusSyncFight.XScriptLuaProxy
function XCharLuciaP1:Ctor(proxy)
self._proxy = proxy
end
function XCharLuciaP1: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 XCharLuciaP1:Update(dt)
self._interaction:Update(dt)
self._anchorVisual:Update(dt)
self._bossFight:Update(dt)
end
---@param eventType number
---@param eventArgs userdata
function XCharLuciaP1:HandleEvent(eventType, eventArgs)
--XLog.Debug(string.format("------XCharLuciaP1 Npc:%d HandleEvent etype:%d", self._npc, eventType))
self._interaction:HandleEvent(eventType, eventArgs)
self._bossFight:HandleEvent(eventType, eventArgs)
end
function XCharLuciaP1:Terminate()
end
function XCharLuciaP1:OnResLoadComplete()
end
local _effectRefTable = {
}
function XCharLuciaP1.GetEffectRefTable()
return _effectRefTable
end
return XCharLuciaP1