public static CardsDatabase LoadCardsDatabase(string datbasePath) { CardsDatabase database = SerializationHelper.DeserializeJson <CardsDatabase>(System.IO.File.ReadAllText(datbasePath)); database.GenerateImages(); database.LoadLocalization(); return(database); }
public void RealoadDB() { _instance = LoadCardsDatabase("./Resources/cards.json"); }