示例#1
0
 public void LoadRepository(FieldRepository repository)
 {
     this.Pieces = repository.Pieces;
     Flippers    = new List <IFlipper>()
     {
         new LeftSideFlipper(this.Pieces)
     };
 }
示例#2
0
        public static Field LoadRepository(FieldRepository repository)
        {
            var field = new Field();

            field.Pieces   = repository.Pieces;
            field.Flippers = new List <Flipper>()
            {
                new LeftSideFlipper(field.Pieces)
            };
        }