public static CardsDatabase LoadCardsDatabase(string datbasePath) { if (new Utils.IOWrappers.FileWrapper().Exists(datbasePath)) { CardsDatabase database = SerializationHelper.DeserializeJson <CardsDatabase>(System.IO.File.ReadAllText(datbasePath)); return(database); } else { return(null); } }
public ICardsDatabase RealoadDB() { _instance = LoadCardsDatabase("./Resources/cards.json"); return(_instance); }