/
TrackShape.h
56 lines (46 loc) · 1.21 KB
/
TrackShape.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* This file is part of TSRE5.
*
* TSRE5 - train sim game engine and MSTS/OR Editors.
* Copyright (C) 2016 Piotr Gadecki <pgadecki@gmail.com>
*
* Licensed under GNU General Public License 3.0 or later.
*
* See LICENSE.md or https://www.gnu.org/licenses/gpl.html
*/
#ifndef TRACKSHAPE_H
#define TRACKSHAPE_H
#include <QString>
class QTextStream;
class FileBuffer;
class TrackShape {
public:
struct SectionIdx{
int n = 0;
float pos[3];
float rotDeg = 0;
unsigned short sect[12];
};
QString filename;
int id;
int numpaths = 0;
int mainroute = -1;
int clearancedist = -1;
bool crossovershape = false;
bool tunnelshape = false;
bool roadshape = false;
bool manualjunctionshape = false;
bool dyntrack = false;
SectionIdx *path;
int xoverpts = 0;
float *xoverpt = NULL;
// } else if (sh == ("xoverpts")) {
TrackShape();
TrackShape(int t);
virtual ~TrackShape();
QString getHashString();
//void getShapePath();
void saveToStream(QTextStream &out);
void loadUtf16Data(FileBuffer *data);
private:
};
#endif /* TRACKSHAPE_H */