public Collection <TmxObjectPoint> ParsePoints(XElement xPoints) { var points = new Collection <TmxObjectPoint>(); var pointString = (string)xPoints.Attribute("points"); var pointStringPair = pointString.Split(' '); foreach (var s in pointStringPair) { var pt = new TmxObjectPoint(s); points.Add(pt); } return(points); }
public Collection<TmxObjectPoint> ParsePoints(XElement xPoints) { var points = new Collection<TmxObjectPoint>(); var pointString = (string)xPoints.Attribute("points"); var pointStringPair = pointString.Split(' '); foreach (var s in pointStringPair) { var pt = new TmxObjectPoint(s); points.Add(pt); } return points; }