private Atom(int x, int y, AtomAtrributes attributes) { this.id = Guid.NewGuid(); this.x = x; this.y = y; this.Attributes = attributes; this.bonds = new Dictionary <Direction, Bond>(); foreach (Direction direction in (Direction[])Enum.GetValues(typeof(Direction))) { bonds[direction] = null; } }
private Atom(int x, int y, AtomAtrributes attributes, Dictionary <Direction, Bond> bonds) : this(x, y, attributes) { this.bonds = bonds; }