状态效果API

钩子函数(状态效果脚本:contents/buffs/...)

void UpdatePlayer(Player player, int buffRemainTime)

function UpdatePlayer(player, buffRemainTime)
    
end

玩家拥有该状态效果时每帧调用该函数。

  • buffRemainTime表示BUFF剩余生效时间。

void UpdateNpc(Npc npc, int buffRemainTime)

function UpdateNpc(npc, buffRemainTime)
    
end

NPC拥有该状态效果时每帧调用该函数。

  • buffRemainTime表示BUFF剩余生效时间。

Last updated