public Instance(IStateMachineTarget master, Def def) : base(master, def) { detectorNetworkDef = new DetectorNetwork.Def(); detectorNetworkDef.interferenceRadius = 15; detectorNetworkDef.worstWarningTime = 1f; detectorNetworkDef.bestWarningTime = 200f; detectorNetworkDef.bestNetworkSize = 6; targetCraft = new Ref <LaunchConditionManager>(); RerollAccuracy(); }
public Instance(IStateMachineTarget master, AdvancedSpaceScannerController.Def def) : base(master, def) { this.detectorNetworkDef = new DetectorNetwork.Def(); this.detectorNetworkDef.interferenceRadius = INTERFERENCE_RADIUS; this.detectorNetworkDef.worstWarningTime = WORST_WARNING_TIME; this.detectorNetworkDef.bestWarningTime = BEST_WARNING_TIME; this.detectorNetworkDef.bestNetworkSize = MAX_DISH_COUNT; this.targetCraft = new Ref <LaunchConditionManager>(); this.RerollAccuracy(); }
public static void Postfix(DetectorNetwork.Def ___detectorNetworkDef) { if (___detectorNetworkDef == null) { return; } ___detectorNetworkDef.interferenceRadius = CustomizeBuildingsState.StateManager.State.ScannerInterferenceRadius; ___detectorNetworkDef.worstWarningTime = CustomizeBuildingsState.StateManager.State.ScannerWorstWarningTime; ___detectorNetworkDef.bestWarningTime = CustomizeBuildingsState.StateManager.State.ScannerBestWarningTime; ___detectorNetworkDef.bestNetworkSize = CustomizeBuildingsState.StateManager.State.ScannerBestNetworkSize; }