55 lines
No EOL
1.6 KiB
Lua
55 lines
No EOL
1.6 KiB
Lua
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 |