mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 14:58:27 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
13
dScripts/BaseWavesGenericEnemy.cpp
Normal file
13
dScripts/BaseWavesGenericEnemy.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user