예제 #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);
        }
예제 #2
0
 public IXPFlightLoopHook RegisterFlightLoopHook(FlightLoopTime initialSchedule, FlightLoopDelegate loopDelegate)
 {
     return(new XPFlightLoopHook(initialSchedule, loopDelegate));
 }