/// <summary> /// Applied before GetBalloonStallCell runs. /// </summary> internal static void Prefix(BalloonStandCellSensor ___balloonArtistCellSensor) { if (___balloonArtistCellSensor != null) { BalloonStandCellSensorUpdater.Update(___balloonArtistCellSensor); } }
internal static void Update(BalloonStandCellSensor _) { // Dummy code to ensure no inlining while (System.DateTime.Now.Ticks > 0L) { throw new NotImplementedException("Reverse patch stub"); } }
protected override void OnSpawn() { var opts = FastTrackOptions.Instance; base.OnSpawn(); if (opts.SensorOpts) { balloonSensor = sensors.GetSensor <BalloonStandCellSensor>(); idleSensor = sensors.GetSensor <IdleCellSensor>(); mingleSensor = sensors.GetSensor <MingleCellSensor>(); safeSensor = sensors.GetSensor <SafeCellSensor>(); toiletSensor = sensors.GetSensor <ToiletSensor>(); } if (opts.PickupOpts) { edibleSensor = sensors.GetSensor <ClosestEdibleSensor>(); pathSensor = sensors.GetSensor <PathProberSensor>(); pickupSensor = sensors.GetSensor <PickupableSensor>(); } RunUpdate(); SlicedUpdaterSim1000ms <SensorWrapper> .instance.RegisterUpdate1000ms(this); }