Exemplo n.º 1
0
        protected static void OnPerform(Scenario paramScenario, ScenarioFrame frame)
        {
            LeveledScenario scenario = paramScenario as LeveledScenario;

            if (!scenario.Main.SecondCycle)
            {
                scenario.IncStat("First Cycle");
                return;
            }

            sTracer.Initialize(scenario, scenario.Sim);

            sTracer.Perform();

            if ((!sTracer.mIgnore) || (scenario.DebuggingLevel >= Common.DebugLevel.High))
            {
                Common.DebugNotify("Skillup Allow" + Common.NewLine + scenario.Sim.FullName + Common.NewLine + scenario.Event.Guid, scenario.Sim.CreatedSim);

                Common.DebugWriteLog("Sim: " + scenario.Sim.FullName + Common.NewLine + "Skill: " + scenario.Event.Guid + Common.NewLine + sTracer.ToString());
            }

            // In order to bypass a script error involving Skill:DisplayTextForLevel() we must delay resetting
            //   until after the calling routine is complete
            new DelayedResetTask(scenario, sTracer.mAllow, sTracer.mManual);
        }
Exemplo n.º 2
0
 public DelayedResetTask(LeveledScenario scenario, bool tracerAllow, bool tracerManual)
     : base(1, TimeUnit.Seconds)
 {
     mScenario     = scenario;
     mTracerAllow  = tracerAllow;
     mTracerManual = tracerManual;
 }