11 ZeroMemory(
memory,
sizeof Sscan * MAX_SHIPINMEMORY);
16 for (
int i = 0; i < MAX_SHIPINMEMORY; i++)
18 if (
memory[i].initialized &&
memory[i].scandata.parentId == parentId)
25 if (
memory[vehicleId].initialized)
31 logger->
Log(
"Got mode AC information for someone that used to have a parent, clearing...");
48 for (
int i = 1; i < MAX_SHIPINMEMORY; i++)
50 if (i == parentId)
continue;
52 if (
memory[i].scandata.parentId == parentId)
61 if (!
memory[vehicleId].initialized)
71 if (!
memory[vehicleId].initialized)
76 if (
memory[vehicleId].scandata.parentId == parentId)
return;
std::vector< Sscandata > children
Sscan memory[MAX_SHIPINMEMORY]
void InsertUpdateParent(USHORT vehicleId, USHORT parentId)
void InsertUpdateModeAC(USHORT vehicleId, SmodeAC modeAC)
void UpdateChildren(USHORT parentId)
void ClearChildren(unsigned short parentId)
void InsertUpdateModeX(USHORT vehicleId, SmodeX modeX)
void Log(const char *msg, Level level=Info, int errorCode=0)
Sscan Get(USHORT vehicleId) const