public static void Reset() { Grimoires.Clear(); Grimoire.ResetStaticVariables(); CoroutineEngine.Reset(); LastResult = false; }
public static void Smallify2() { Grimoires.TrimExcess(); for (int j = 0; j < Grimoires.Count; j++) { Grimoires[j].Smallify2(); } }
/// <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); } }
public static void RemoveGrimoire(Grimoire g) { Grimoires.Remove(g); }
public static Grimoire GetByName(string name) { return(Grimoires.FirstOrDefault(x => x.Name == name)); }