2023-04-12 16:46:31 +00:00
|
|
|
#include "WildNinjaStudent.h"
|
|
|
|
#include "GameMessages.h"
|
2023-06-16 08:01:13 +00:00
|
|
|
#include "Entity.h"
|
2023-04-12 16:46:31 +00:00
|
|
|
|
|
|
|
void WildNinjaStudent::OnStartup(Entity* self) {
|
2023-06-17 09:39:33 +00:00
|
|
|
self->AddGroup("Ninjastuff");
|
2023-04-12 16:46:31 +00:00
|
|
|
GameMessages::SendPlayAnimation(self, u"bow");
|
|
|
|
}
|
|
|
|
|
2023-06-16 08:01:13 +00:00
|
|
|
void WildNinjaStudent::OnNotifyObject(Entity* self, Entity* sender, const std::u16string& name, int32_t param1, int32_t param2) {
|
|
|
|
if (name == u"Crane") GameMessages::SendPlayAnimation(self, u"crane");
|
|
|
|
else if (name == u"Tiger") GameMessages::SendPlayAnimation(self, u"tiger");
|
|
|
|
else if (name == u"Mantis") GameMessages::SendPlayAnimation(self, u"mantis");
|
|
|
|
else if (name == u"Bow") GameMessages::SendPlayAnimation(self, u"bow");
|
2023-04-12 16:46:31 +00:00
|
|
|
}
|