format codebase

This commit is contained in:
aronwk-aaron
2022-07-28 08:39:57 -05:00
parent 4f7aa11067
commit 19e77a38d8
881 changed files with 34700 additions and 38689 deletions

View File

@@ -3,16 +3,14 @@
#include "GameMessages.h"
#include "EntityManager.h"
void PropertyDeathPlane::OnCollisionPhantom(Entity* self, Entity* target)
{
const auto teleportGroup = EntityManager::Instance()->GetEntitiesInGroup("Teleport");
void PropertyDeathPlane::OnCollisionPhantom(Entity* self, Entity* target) {
const auto teleportGroup = EntityManager::Instance()->GetEntitiesInGroup("Teleport");
if (teleportGroup.size() == 0)
{
return;
}
if (teleportGroup.size() == 0) {
return;
}
auto* teleport = teleportGroup[0];
auto* teleport = teleportGroup[0];
GameMessages::SendTeleport(target->GetObjectID(), teleport->GetPosition(), teleport->GetRotation(), target->GetSystemAddress());
GameMessages::SendTeleport(target->GetObjectID(), teleport->GetPosition(), teleport->GetRotation(), target->GetSystemAddress());
}