Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public IXPFlightLoopHook RegisterFlightLoopHook(FlightLoopTime initialSchedule, FlightLoopDelegate loopDelegate)
 {
     return(new XPFlightLoopHook(initialSchedule, loopDelegate));
 }