39 SCORE_SERIALIZE_FRIENDS
50 template <
typename DeserializerVisitor>
51 EventModel(DeserializerVisitor&& vis, QObject* parent)
65 using StateIdVec = ossia::small_vector<Id<StateModel>, 2>;
66 const StateIdVec& states() const noexcept;
69 const
State::Expression& condition() const noexcept;
70 OffsetBehavior offsetBehavior() const noexcept;
71 const
TimeVal& date() const noexcept;
73 double dateInFlicks() const noexcept {
return date().impl; }
74 void translate(
const TimeVal& deltaTime);
75 ExecutionStatus status() const noexcept;
77 bool active() const noexcept;
80 bool scriptable() const noexcept {
return m_scriptable; }
81 void setScriptable(
bool b);
84 void setDate(
const TimeVal& date);
86 void setOffsetBehavior(Scenario::OffsetBehavior);
91 void dateChanged(
const TimeVal& arg_1)
92 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, dateChanged, arg_1)
94 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, conditionChanged, arg_1)
95 void statesChanged() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, statesChanged)
96 void statusChanged(
Scenario::ExecutionStatus status)
97 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, statusChanged, status)
98 void offsetBehaviorChanged(OffsetBehavior arg_1)
99 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, offsetBehaviorChanged, arg_1)
100 void scriptableChanged(
bool b)
101 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, scriptableChanged, b)
104 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, timeSyncChanged, oldt, newt)
106 PROPERTY(
bool, scriptable READ scriptable WRITE setScriptable NOTIFY scriptableChanged)
111 State::Expression m_condition;
112 TimeVal m_date{TimeVal::zero()};
114 ExecutionStatusProperty m_status{};
115 OffsetBehavior m_offset{};
118 PROPERTY(
double, date READ dateInFlicks NOTIFY dateChanged)
121 Scenario::OffsetBehavior,
122 offsetBehavior READ offsetBehavior WRITE setOffsetBehavior NOTIFY
123 offsetBehaviorChanged,