mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 21:43:35 +00:00
3e3148e910
* convert zone manager to game namespace * Destroy logger last
14 lines
437 B
C++
14 lines
437 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 = Game::zoneManager->GetZoneControlObject();
|
|
if (zoneControlObject != nullptr) {
|
|
zoneControlObject->OnFireEventServerSide(killer, "Survival_Update", GetPoints());
|
|
}
|
|
}
|