1
This commit is contained in:
parent
7db6002282
commit
1a51c6df3f
@ -27,6 +27,11 @@ void Skill::Initialzie()
|
||||
&xtimer_attacher.timer_list_);
|
||||
}
|
||||
break;
|
||||
case kPassiveSkill:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "room.h"
|
||||
#include "human.h"
|
||||
#include "car.h"
|
||||
#include "bullet.h"
|
||||
|
||||
void Trigger::Init()
|
||||
{
|
||||
@ -424,7 +425,7 @@ void Trigger::DispatchEvent(int event_id, const std::vector<std::any>& param)
|
||||
void Trigger::BulletHit(Bullet* bullet)
|
||||
{
|
||||
if (bullet->sender.Get()) {
|
||||
bullet->sender.Get()->DispatchEvent(kBulletHit, {bullet});
|
||||
bullet->sender.Get()->GetTrigger()->DispatchEvent(kBulletHit, {bullet});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user