mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-10 12:52:39 +01:00
a55bcc557d
* Add disabled flag to AI nodes * Move ZoneData structure into own file * Add Gang density to ZoneData.
36 lines
551 B
C++
36 lines
551 B
C++
#pragma once
|
|
#ifndef _AIGRAPHNODE_HPP_
|
|
#define _AIGRAPHNODE_HPP_
|
|
#include <glm/glm.hpp>
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
struct AIGraphNode
|
|
{
|
|
enum NodeType {
|
|
Vehicle,
|
|
Pedestrian
|
|
};
|
|
|
|
enum {
|
|
None = 0,
|
|
CrossesRoad = 1 /// No documentation for other flags yet, but this is mentioned.
|
|
};
|
|
|
|
NodeType type;
|
|
glm::vec3 position;
|
|
float size;
|
|
int other_thing;
|
|
int other_thing2;
|
|
bool external;
|
|
uint8_t flags;
|
|
|
|
int32_t nextIndex;
|
|
|
|
bool disabled;
|
|
|
|
std::vector<AIGraphNode*> connections;
|
|
};
|
|
|
|
#endif
|