16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 00:09:19 +02:00

switch state visualisation, semaphore tracking for map purposes

This commit is contained in:
milek7
2019-02-22 22:21:23 +01:00
parent 2bacb941c0
commit 939aa73384
14 changed files with 141 additions and 25 deletions

22
widgets/map_objects.h Normal file
View File

@@ -0,0 +1,22 @@
#include "simulation.h"
#include "event.h"
#include "scene.h"
namespace map {
// semaphore description (only for minimap purposes)
struct semaphore {
std::string name;
glm::vec3 location;
std::vector<basic_event *> events;
};
// switch description (only for minimap purposes)
struct track_switch {
glm::vec3 location;
};
extern std::vector<semaphore> Semaphores;
extern std::vector<track_switch> Switches;
}