public static void Init()
 {
     if (PassengerShipAIMod._isDeployed)
     {
         return;
     }
     PassengerShipAIMod.LoadPassengers             = (PassengerShipAIMod.LoadPassengersCallback)Utils.CreateDelegate <PassengerShipAI, PassengerShipAIMod.LoadPassengersCallback>("LoadPassengers", (object)null);
     PassengerShipAIMod.UnloadPassengers           = (PassengerShipAIMod.UnloadPassengersCallback)Utils.CreateDelegate <PassengerShipAI, PassengerShipAIMod.UnloadPassengersCallback>("UnloadPassengers", (object)null);
     PassengerShipAIMod._redirectionArriveAtTarget = new Redirection <PassengerShipAI, PassengerShipAIMod>("ArriveAtTarget");
     PassengerShipAIMod._redirectionCanLeave       = new Redirection <PassengerShipAI, BusAIMod>("CanLeave");
     PassengerShipAIMod._isDeployed = true;
 }
 public static void Deinit()
 {
     if (!PassengerShipAIMod._isDeployed)
     {
         return;
     }
     PassengerShipAIMod.LoadPassengers   = (PassengerShipAIMod.LoadPassengersCallback)null;
     PassengerShipAIMod.UnloadPassengers = (PassengerShipAIMod.UnloadPassengersCallback)null;
     PassengerShipAIMod._redirectionArriveAtTarget.Revert();
     PassengerShipAIMod._redirectionArriveAtTarget = (Redirection <PassengerShipAI, PassengerShipAIMod>)null;
     PassengerShipAIMod._redirectionCanLeave.Revert();
     PassengerShipAIMod._redirectionCanLeave = (Redirection <PassengerShipAI, BusAIMod>)null;
     PassengerShipAIMod._isDeployed          = false;
 }