public void LoadRepository(FieldRepository repository) { this.Pieces = repository.Pieces; Flippers = new List <IFlipper>() { new LeftSideFlipper(this.Pieces) }; }
public static Field LoadRepository(FieldRepository repository) { var field = new Field(); field.Pieces = repository.Pieces; field.Flippers = new List <Flipper>() { new LeftSideFlipper(field.Pieces) }; }