//inform the floorplan that a point has been modified //check to see if this point affects this plan public void PointModified(List <RoomPoint> data) { int dataCount = data.Count; if (data.Count == 0) { return; } int pointCount = numberOfPoints; for (int d = 0; d < dataCount; d++) { RoomPoint point = data[d]; if (!point.moved) { continue; } for (int p = 0; p < pointCount; p++) { if (point.lastPosition == _points[p].position) { _points[p].position = point.position; _points[p].MarkUnmodified(); } } } if (isModified) { MarkModified(); } }
public bool Equals(RoomPoint p) { if (_position != p._position) { return(false); } return(true); }
public void AddPoint(Vector2Int newPosition) { RoomPoint newPoint = new RoomPoint(newPosition); _points.Add(newPoint); CheckPlan(); MarkModified(); }
public RoomPoint Clone() { RoomPoint output = new RoomPoint(_position); return(output); }