mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 22:17:31 +00:00
92006123b8
- change NotifyObject to use u16 string - move stuff to header that is inline - use u16strings instead of converting to u16 string - move entity to dEntity
14 lines
495 B
C++
14 lines
495 B
C++
#include "WildNinjaBricks.h"
|
|
#include "Entity.h"
|
|
|
|
void WildNinjaBricks::OnStartup(Entity* self) {
|
|
self->AddToGroups("Ninjastuff");
|
|
}
|
|
|
|
void WildNinjaBricks::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");
|
|
}
|
|
|