mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 19:32:49 +01:00
41 lines
579 B
C++
41 lines
579 B
C++
#pragma once
|
|
#ifndef __GLT_PATHDATA_HPP__
|
|
#define __GLT_PATHDATA_HPP__
|
|
#include <glm/glm.hpp>
|
|
#include <string>
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
|
|
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 |