Esempio n. 1
0
        public WorldMap(Xml.WorldMap newWorldMap)
        {
            Points    = new List <MapPoint>();
            Name      = newWorldMap.Name;
            ClientMap = newWorldMap.ClientMap;

            foreach (var point in newWorldMap.Points.Point)
            {
                var mapPoint = new MapPoint(point.X, point.Y)
                {
                    DestinationMap = point.Target.Value,
                    DestinationX   = point.Target.X,
                    DestinationY   = point.Target.Y,
                    Name           = point.Name
                };
                // We don't implement world map point restrictions yet, so we're done here
                Points.Add(mapPoint);
            }
        }
Esempio n. 2
0
        public static bool LoadFromFile(string fileName, out WorldMap obj)
        {
            Exception exception = null;

            return(LoadFromFile(fileName, out obj, out exception));
        }
Esempio n. 3
0
        public static bool Deserialize(string input, out WorldMap obj)
        {
            Exception exception = null;

            return(Deserialize(input, out obj, out exception));
        }