UGCProjects/GZJ/Script/Blueprint/Monster/BP_TyrantMonster_2.lua

112 lines
3.0 KiB
Lua
Raw Normal View History

2025-01-08 22:46:12 +08:00
---@class BP_TyrantMonster_2_C:BP_MonsterBoss_C
---@field UAESkillManager UUAESkillManagerComponent
---@field SphereShield UStaticMeshComponent
---@field ShieldValue float
--Edit Below--
---@class BP_TyrantMonster_2_C:BP_MonsterBoss_C
---@field SphereShield UStaticMeshComponent
---@field UAESkillManager UUAESkillManagerComponent
---@field ShieldValue float
-- Edit Below--
local MonsterBoss = require('Script.Blueprint.Monster.BP_MonsterBoss')
-- local BP_TyrantMonster = {
-- ModifyDamageDelegation = {}
-- }
local BP_TyrantMonster = setmetatable(
{
--ModifyDamageDelegation = {}
},
{
__index = MonsterBoss,
__metatable = MonsterBoss
}
);
-- function BP_TyrantMonster:GetReplicatedProperties()
-- return "RemoveModifyDamageDelegation", "AddModifyDamageDelegationFun"
-- end
--[[
function BP_TyrantMonster:ReceiveTick(DeltaTime)
self.SuperClass.ReceiveTick(self, DeltaTime);
end
--]]
--[[
function BP_TyrantMonster:ReceiveEndPlay()
self.SuperClass.ReceiveEndPlay(self);
end
--]]
--[[
function BP_TyrantMonster:GetReplicatedProperties()
return
end
--]]
--[[
function BP_TyrantMonster:GetAvailableServerRPCs()
return
end
--]]
-- function BP_TyrantMonster:GetGiveExp()
-- return 5
-- end
-- function BP_TyrantMonster:GetDropRate()
-- return 95
-- end
--[[
time: 20230312
name: LanTian
describe
ModifyDamageDelegation的委托tableBP_CharacterModifyDamage便
AddModifyDamageDelegationFun
RemoveModifyDamageDelegation
]] --
-- ---@field BP_CharacterModifyDamage:fun(DamageAmount:float,DamageEvent:FDamageEvent,EventInstigator:AController,DamageCauser:AActor):float
-- function BP_TyrantMonster:BP_CharacterModifyDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser)
-- print("DamageModify: " .. DamageAmount)
-- if self.ModifyDamageDelegation then
-- for k, fun in pairs(self.ModifyDamageDelegation) do
-- print("DamageModifyBegin: " .. DamageAmount)
-- DamageAmount = fun(DamageAmount, DamageEvent, EventInstigator, DamageCauser)
-- print("DamageModifyFunFinsh: " .. DamageAmount)
-- end
-- end
-- if DamageAmount < 0 then
-- DamageAmount = 0
-- end
-- return DamageAmount
-- end
-- function BP_TyrantMonster:RemoveModifyDamageDelegation(Key)
-- if self.ModifyDamageDelegation[Key] then
-- self.ModifyDamageDelegation[Key] = nil
-- return true
-- end
-- return false
-- end
-- ---@param Key string
-- ---@param DelegationFun fun(DamageAmount:float,DamageEvent:FDamageEvent,EventInstigator:AController,DamageCauser:AActor):float
-- ---@return bool
-- function BP_TyrantMonster:AddModifyDamageDelegationFun(Key, DelegationFun)
-- if self.ModifyDamageDelegation[Key] then
-- return false
-- else
-- self.ModifyDamageDelegation[Key] = DelegationFun
-- return true
-- end
-- end
return BP_TyrantMonster;