Files
DarkflameServer/dGame/dEntity/EntityInfo.h
David Markowitz 0101933f5c chore: cleanup pointer management for LDF data (#1995)
* change network settings from vector to LwoNameValue

* move settings on Entity to managed memory

* Migrate more members

* chore: remove pointer leakage from raw ldf pointers

* feedback

* fix ci
2026-06-14 20:54:52 -07:00

41 lines
641 B
C++

#pragma once
#include <vector>
#include "dCommonVars.h"
#include "NiPoint3.h"
#include "NiQuaternion.h"
#include "LDFFormat.h"
class Spawner;
struct EntityInfo {
EntityInfo() {
spawner = nullptr;
spawnerID = 0;
hasSpawnerNodeID = false;
spawnerNodeID = 0;
id = 0;
lot = LOT_NULL;
pos = { 0,0,0 };
rot = { 0,0,0,0 };
settings = {};
networkSettings = {};
scale = 1.0f;
}
Spawner* spawner;
LWOOBJID spawnerID;
bool hasSpawnerNodeID;
uint32_t spawnerNodeID;
LWOOBJID id;
LOT lot;
NiPoint3 pos;
NiQuaternion rot = QuatUtils::IDENTITY;
LwoNameValue settings;
LwoNameValue networkSettings;
float scale;
};