/* INFINITY CODE 2013-2019 */ /* http://www.infinity-code.com */ using System; using System.Xml; using UnityEngine; namespace InfinityCode.RealWorldTerrain { /// /// Class points of interest. /// [Serializable] public class RealWorldTerrainPOI { /// /// The title of the POI. /// public string title; /// /// Longitude. /// public double x; /// /// Latitude. /// public double y; /// /// Altitude /// public float altitude; public GameObject prefab; public RealWorldTerrainPOI() { } /// /// Constructor. /// /// POI title. /// Longitude. /// Latitude. public RealWorldTerrainPOI(string title, double x, double y, float altitude = 0) { this.title = title; this.x = x; this.y = y; this.altitude = altitude; } public RealWorldTerrainPOI(XmlNode node) { try { x = RealWorldTerrainXMLExt.GetAttribute(node, "x"); y = RealWorldTerrainXMLExt.GetAttribute(node, "y"); title = node.InnerText; } catch (Exception e) { Debug.Log(e.Message); throw; } } } }