public static void OnPerform(Scenario scenario, ScenarioFrame frame) { RetirementScenario retirement = scenario as RetirementScenario; if (retirement != null) { retirement.RetiredAtMax = scenario.GetValue <Option, bool>(); } SimScenario s = scenario as SimScenario; if (s == null) { return; } scenario.Add(frame, new RetireAtMaxScenario(s.Sim), ScenarioResult.Start); }
protected RetirementScenario(RetirementScenario scenario) : base(scenario) { mRetiredAtMax = scenario.mRetiredAtMax; }
protected RetirementScenario(RetirementScenario scenario) : base(scenario) { mRetiredAtMax = scenario.mRetiredAtMax; }