mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 12:18:22 +00:00
15954413ae
* rename rebuild to quickbuild * fix includes
16 lines
423 B
C++
16 lines
423 B
C++
#include "NTPipeVisibilityServer.h"
|
|
#include "Entity.h"
|
|
#include "Character.h"
|
|
|
|
void NTPipeVisibilityServer::OnQuickBuildComplete(Entity* self, Entity* target) {
|
|
const auto flag = self->GetVar<int32_t>(u"flag");
|
|
if (flag == 0) return;
|
|
|
|
auto* character = target->GetCharacter();
|
|
if (!character) return;
|
|
|
|
character->SetPlayerFlag(flag, true);
|
|
|
|
GameMessages::SendNotifyClientObject(self->GetObjectID(), u"PipeBuilt");
|
|
}
|