public Memento(string filepath) { var savedState = DataSerializer.DeserializeState(filepath); InventoryState = savedState.InventoryState; WalletState = savedState.WalletState; PetState = savedState.PetState; }