mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 05:09:20 +02:00
feat(scenery): models laid along curves (sweep nodes), bent to follow the paths or repeated along them, loaded and saved with the scenery; trainsets put on a path while the simulation runs; trainset turned around by reversed after its header: the first vehicle stays at the offset and leads towards point 1, the rest stands behind it; launcher keeps reversed trainsets and can turn one around; memory cells saved with the new name of the path they name; events tell their targets and the events of a multiple event; renderer tells whether the cursor is over a surface; vehicle placed in the editor entered when the driving goes on
This commit is contained in:
@@ -47,6 +47,7 @@ public:
|
||||
// destructor
|
||||
virtual ~basic_event();
|
||||
// methods
|
||||
std::vector<scene::basic_node *> target_nodes() const;
|
||||
// restores event data from provided stream
|
||||
virtual
|
||||
void
|
||||
@@ -334,6 +335,7 @@ public:
|
||||
void init() override;
|
||||
|
||||
std::vector<std::string> dump_children_names() const;
|
||||
std::vector<basic_event *> children() const;
|
||||
|
||||
private:
|
||||
// types
|
||||
@@ -699,6 +701,9 @@ public:
|
||||
// returns all eventlaunchers in radius ignoring height
|
||||
std::vector<TEventLauncher *>
|
||||
find_eventlaunchers(glm::vec2 center, float radius) const;
|
||||
std::deque<basic_event *> const &
|
||||
sequence() const {
|
||||
return m_events; }
|
||||
// all event launchers, global ones included
|
||||
std::vector<TEventLauncher *>
|
||||
launchers() const {
|
||||
|
||||
Reference in New Issue
Block a user