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

Method Stop

trinity/Controllers/Actions/Tr2ActionPython.cpp:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void Tr2ActionPython::Stop( ITr2ActionController& controller )
117{
118 m_isPlaying = false;
119 controller.UnRegisterUpdateable( *this );
120 if( !m_vtable.onStop )
121 {
122 return;
123 }
124 ContinueOnMainThread( [self = Tr2ActionPythonPtr( this ), controllerPtr = ITr2ActionControllerPtr( &controller ), owner = IRootPtr( controller.GetOwner() )]() {
125 self->m_vtable.onStop.CallVoid( owner, controllerPtr );
126 } );
127}
128
129void Tr2ActionPython::Update( Be::Time realTime, Be::Time simTime )
130{

Callers

nothing calls this directly

Calls 3

ContinueOnMainThreadFunction · 0.85
UnRegisterUpdateableMethod · 0.45
GetOwnerMethod · 0.45

Tested by

no test coverage detected