| 156 | } |
| 157 | |
| 158 | void Tr2StateMachineState::Unlink( UnlinkReason reason ) |
| 159 | { |
| 160 | if( !m_stateMachine ) |
| 161 | { |
| 162 | return; |
| 163 | } |
| 164 | if( reason != UnlinkReason::DELETING ) |
| 165 | { |
| 166 | Stop(); |
| 167 | } |
| 168 | m_stateMachine = nullptr; |
| 169 | for( auto it = begin( m_transitions ); it != end( m_transitions ); ++it ) |
| 170 | { |
| 171 | ( *it )->Unlink(); |
| 172 | } |
| 173 | for( auto it = begin( m_actions ); it != end( m_actions ); ++it ) |
| 174 | { |
| 175 | ( *it )->Unlink(); |
| 176 | } |
| 177 | if( m_finalizer ) |
| 178 | { |
| 179 | m_finalizer->Unlink(); |
| 180 | } |
| 181 | m_transitionVariableMask = 0; |
| 182 | } |
| 183 | |
| 184 | Tr2StateMachineState* Tr2StateMachineState::Update( uint64_t variableDirtyMask ) |
| 185 | { |
no test coverage detected