public unsafe XPFlightLoopHook(FlightLoopTime initialSchedule, FlightLoopDelegate loopDelegate) { m_loopDelegate = loopDelegate; m_hookDelegate = new XPLMFlightLoop_f(XPLMFlightHookCallback); PluginBridge.ApiFunctions.XPLMRegisterFlightLoopCallback(m_hookDelegate, initialSchedule.Time, inRefcon: null); }
public IXPFlightLoopHook RegisterFlightLoopHook(FlightLoopTime initialSchedule, FlightLoopDelegate loopDelegate) { return(new XPFlightLoopHook(initialSchedule, loopDelegate)); }