mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-26 16:44:21 +00:00
fixes
This commit is contained in:
@@ -2242,8 +2242,9 @@ bool Entity::MsgRequestServerObjectInfo(GameMessages::RequestServerObjectInfo& r
|
|||||||
objectInfo.PushDebug<AMFStringValue>("Spawner's Object ID", "LWOOBJID") = std::to_string(GetSpawnerID());
|
objectInfo.PushDebug<AMFStringValue>("Spawner's Object ID", "LWOOBJID") = std::to_string(GetSpawnerID());
|
||||||
objectInfo.PushDebug<AMFStringValue>("Owner override", "LWOOBJID") = std::to_string(m_OwnerOverride);
|
objectInfo.PushDebug<AMFStringValue>("Owner override", "LWOOBJID") = std::to_string(m_OwnerOverride);
|
||||||
auto& children = objectInfo.PushDebug("Child Objects");
|
auto& children = objectInfo.PushDebug("Child Objects");
|
||||||
|
int i = 1;
|
||||||
for (const auto* child : m_ChildEntities) {
|
for (const auto* child : m_ChildEntities) {
|
||||||
if (child) children.PushDebug<AMFStringValue>("Child", "LWOOBJID") = std::to_string(child->GetObjectID());
|
if (child) children.PushDebug<AMFStringValue>("Child " + std::to_string(i++), "LWOOBJID") = std::to_string(child->GetObjectID());
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& componentDetails = objectInfo.PushDebug("Component Information");
|
auto& componentDetails = objectInfo.PushDebug("Component Information");
|
||||||
|
|||||||
@@ -80,8 +80,9 @@ bool ProximityMonitorComponent::OnGetObjectReportInfo(GameMessages::GetObjectRep
|
|||||||
proxAmf.PushDebug("Position").PushDebug(entity->GetPosition());
|
proxAmf.PushDebug("Position").PushDebug(entity->GetPosition());
|
||||||
proxAmf.PushDebug("Rotation").PushDebug(entity->GetRotation());
|
proxAmf.PushDebug("Rotation").PushDebug(entity->GetRotation());
|
||||||
auto& collidingAmf = proxAmf.PushDebug("Colliding Objects");
|
auto& collidingAmf = proxAmf.PushDebug("Colliding Objects");
|
||||||
|
int i = 1;
|
||||||
for (const auto& colliding : entity->GetCurrentlyCollidingObjects()) {
|
for (const auto& colliding : entity->GetCurrentlyCollidingObjects()) {
|
||||||
collidingAmf.PushDebug<AMFStringValue>(std::to_string(colliding), "LWOOBJID");
|
collidingAmf.PushDebug<AMFStringValue>(std::to_string(i++), "LWOOBJID") = std::to_string(colliding);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user