1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-10 12:52:39 +01:00
openrw/rwengine/include/data/PathData.hpp

40 lines
561 B
C++
Raw Normal View History

#pragma once
#ifndef __GLT_PATHDATA_HPP__
#define __GLT_PATHDATA_HPP__
#include <glm/glm.hpp>
#include <string>
#include <stdint.h>
struct PathNode
{
enum NodeType
{
EMPTY = 0, /// These are ignored
EXTERNAL = 1, /// May join with other paths
INTERNAL = 2 /// Internal to this path
};
NodeType type;
int32_t next;
glm::vec3 position;
float size;
int other_thing;
int other_thing2;
};
struct PathData
{
enum PathType
{
PATH_PED,
PATH_CAR
};
PathType type;
uint16_t ID;
std::string modelName;
std::vector<PathNode> nodes;
};
#endif