1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-10 12:52:39 +01:00
openrw/rwengine/include/ai/AIGraphNode.hpp
Daniel Evans a55bcc557d Implement some AI and zone opcodes
* Add disabled flag to AI nodes

* Move ZoneData structure into own file

* Add Gang density to ZoneData.
2014-12-16 03:03:04 +00:00

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