r5sdk/r5dev/game/server/ai_network.h
2022-03-20 17:03:46 +01:00

36 lines
1.1 KiB
C++

#pragma once
#include "ai_node.h"
//-----------------------------------------------------------------------------
// CAI_Network
//
// Purpose: Stores a node graph through which an AI may pathfind
//-----------------------------------------------------------------------------
class CAI_Network
{
public:
void* m_pVTable;
// this is uninitialised and never set on ain build, fun!
int linkcount; // +8
char unk1[124]; // +12
int zonecount; // +136
char unk2[16]; // +140
// unk8 on disk
int unk5; // +156
char unk6[4]; // +160
int hintcount; // +164
// these probably aren't actually hints, but there's 1 of them per hint so idk
short hints[2000]; // +168
int scriptnodecount; // +4168
char pad[28]; // unk
int64_t nodecount; // +4200
CAI_Node** nodes; // +4208
CAI_ScriptNode scriptnodes[4000]; // +4172
public:
static void BuildAINFile(CAI_Network* aiNetwork);
};