mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-15 12:38:31 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
9
dScripts/AgMonumentRaceCancel.cpp
Normal file
9
dScripts/AgMonumentRaceCancel.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "AgMonumentRaceCancel.h"
|
||||
#include "EntityManager.h"
|
||||
|
||||
void AgMonumentRaceCancel::OnCollisionPhantom(Entity *self, Entity *target) {
|
||||
auto managers = EntityManager::Instance()->GetEntitiesInGroup("race_manager");
|
||||
if (!managers.empty()) {
|
||||
managers[0]->OnFireEventServerSide(target, "course_cancel");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user