mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
15954413ae
* rename rebuild to quickbuild * fix includes
13 lines
469 B
C++
13 lines
469 B
C++
#include "NtImagimeterVisibility.h"
|
|
#include "GameMessages.h"
|
|
#include "Entity.h"
|
|
#include "Character.h"
|
|
#include "ePlayerFlag.h"
|
|
|
|
void NTImagimeterVisibility::OnQuickBuildComplete(Entity* self, Entity* target) {
|
|
auto* character = target->GetCharacter();
|
|
if (character) character->SetPlayerFlag(ePlayerFlag::NT_PLINTH_REBUILD, true);
|
|
|
|
GameMessages::SendNotifyClientObject(self->GetObjectID(), u"PlinthBuilt", 0, 0, LWOOBJID_EMPTY, "", target->GetSystemAddress());
|
|
}
|