Example #1
0
 public void OnLoad()
 {
     Loading           = true;
     LoadIndex         = -1;
     FinalText         = "";
     FinalChoices      = new List <Choice>();
     FinalEventChoices = new List <EventChoice>();
     foreach (TextBlock TB in Blocks)
     {
         if (TB.Active())
         {
             FinalText += TB.Content;
         }
     }
     foreach (Choice C in Choices)
     {
         if (C.Active())
         {
             FinalChoices.Add(C);
         }
     }
     foreach (EventChoice EC in EventChoices)
     {
         if (EC.Active())
         {
             FinalEventChoices.Add(EC);
         }
     }
     foreach (VariableChange VC in Changes)
     {
         VC.Process();
     }
     CurrentDelay = GetDelay() * 0.25f;
     CommandCheck();
     IndexCheck();
     foreach (UnitEffect UE in Effects)
     {
         UE.Effect();
     }
     foreach (NextUnitOverride NUO in Overrides)
     {
         if (NUO.Active())
         {
             NextUnit = NUO.GetUnit();
             break;
         }
     }
 }