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);
        }
示例#2
0
        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;
        }