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:
22
widgets/map_objects.h
Normal file
22
widgets/map_objects.h
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user