You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
904 B
29 lines
904 B
1 month ago
|
// using CoreGame;
|
||
|
//
|
||
|
// namespace CoreGame.Render
|
||
|
// {
|
||
|
// public class Trigger_OnWillDeath : TriggerBase
|
||
|
// {
|
||
|
// // 将要死亡
|
||
|
// public override void OnEvent(TriggerSpec self, int eventId, object param1)
|
||
|
// {
|
||
|
// var hurtData = (HurtData)param1;
|
||
|
// var willHp = hurtData.calculateDeltaHp + hurtData.dst.property.GetProperty_Long(PropertyDef.CurHp);
|
||
|
// if (willHp <= 0)
|
||
|
// {
|
||
|
// self.triggerData = param1;
|
||
|
// OnTrigger(self, eventId, param1);
|
||
|
// }
|
||
|
// }
|
||
|
//
|
||
|
// public override void Init(TriggerSpec self)
|
||
|
// {
|
||
|
// RegEntityEvent(self, ClientEvent.OnWillChangeHp);
|
||
|
// }
|
||
|
//
|
||
|
// public override void UnInit(TriggerSpec self)
|
||
|
// {
|
||
|
// UnRegEntityEvent(self, ClientEvent.OnWillChangeHp);
|
||
|
// }
|
||
|
// }
|
||
|
// }
|