mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-27 16:07:22 +00:00
0545adfac3
Have fun!
14 lines
462 B
C++
14 lines
462 B
C++
#include "BaseWavesGenericEnemy.h"
|
|
#include "dZoneManager.h"
|
|
|
|
void BaseWavesGenericEnemy::OnStartup(Entity *self) {
|
|
self->SetNetworkVar<uint32_t>(u"points", GetPoints());
|
|
}
|
|
|
|
void BaseWavesGenericEnemy::OnDie(Entity *self, Entity *killer) {
|
|
auto* zoneControlObject = dZoneManager::Instance()->GetZoneControlObject();
|
|
if (zoneControlObject != nullptr) {
|
|
zoneControlObject->OnFireEventServerSide(killer, "Survival_Update", GetPoints());
|
|
}
|
|
}
|