DarkflameServer/dScripts/BaseWavesGenericEnemy.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
437 B
C++
Raw Permalink Normal View History

#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());
}
}