scenery groups export and deserialization, associated events included in scenery node groups, AI brake charging tweak, door locking and vehicle hunting oscillation sounds

This commit is contained in:
tmj-fstate
2018-08-24 21:11:35 +02:00
parent 24eda2d63f
commit 09f24df109
14 changed files with 304 additions and 118 deletions

19
Event.h
View File

@@ -95,6 +95,10 @@ public:
bool StopCommand();
void StopCommandSent();
void Append(TEvent *e);
void
group( scene::group_handle Group );
scene::group_handle
group() const;
// members
std::string asName;
bool m_ignored { false }; // replacement for tp_ignored
@@ -114,9 +118,24 @@ public:
bool m_conditionalelse { false }; // TODO: make a part of condition struct
private:
// methods
void Conditions( cParser *parser, std::string s );
// members
scene::group_handle m_group { null_handle }; // group this event belongs to, if any
};
inline
void
TEvent::group( scene::group_handle Group ) {
m_group = Group;
}
inline
scene::group_handle
TEvent::group() const {
return m_group;
}
class event_manager {
public: