MCPcopy Create free account
hub / github.com/carbonengine/trinity / Unlink

Method Unlink

trinity/Controllers/Tr2StateMachineState.cpp:158–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void 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
184Tr2StateMachineState* Tr2StateMachineState::Update( uint64_t variableDirtyMask )
185{

Callers 1

OnListModifiedMethod · 0.45

Calls 3

StopFunction · 0.85
beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected