-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathConLib.h
34 lines (28 loc) · 839 Bytes
/
ConLib.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
/* This file is part of TSRE5.
*
* TSRE5 - train sim game engine and MSTS/OR Editors.
* Copyright (C) 2016 Piotr Gadecki <[email protected]>
*
* Licensed under GNU General Public License 3.0 or later.
*
* See LICENSE.md or https://www.gnu.org/licenses/gpl.html
*/
#ifndef CONLIB_H
#define CONLIB_H
#include <unordered_map>
#include <QString>
class Consist;
class ConLib {
public:
static int jestcon;
static std::unordered_map<int, Consist*> con;
static QVector<QString> conFileList;
ConLib();
virtual ~ConLib();
static int addCon(QString path, QString name);
static int loadAll(QString gameRoot, bool gui = false);
static int refreshEngDataAll();
static int loadSimpleList(QString gameRoot, bool reload = false);
private:
};
#endif /* CONLIB_H */