public Block(int id = 0, Field field = null) { this.Id = id; this.Data = Blocks[id].Clone() as int[,]; if (field != null) { this.X = -2 + (field.W / 2); this.Y = -2; } }
public TetrisViewModel() { rand = new Random(); field = new Field(); block = null; }