예제 #1
0
 public static void Reset()
 {
     Grimoires.Clear();
     Grimoire.ResetStaticVariables();
     CoroutineEngine.Reset();
     LastResult = false;
 }
예제 #2
0
 public static void Smallify2()
 {
     Grimoires.TrimExcess();
     for (int j = 0; j < Grimoires.Count; j++)
     {
         Grimoires[j].Smallify2();
     }
 }
예제 #3
0
 /// <summary>
 /// Add new grimoire
 /// </summary>
 /// <param name="grimoire"></param>
 /// <returns></returns>
 public static bool AddGrimoire(Grimoire grimoire)
 {
     if (grimoire.Name != null && Grimoires.Any(x => x.Name == grimoire.Name))
     {
         return(false);
     }
     else
     {
         Grimoires.Add(grimoire);
         return(true);
     }
 }
예제 #4
0
 public static void RemoveGrimoire(Grimoire g)
 {
     Grimoires.Remove(g);
 }
예제 #5
0
 public static Grimoire GetByName(string name)
 {
     return(Grimoires.FirstOrDefault(x => x.Name == name));
 }