RealWorldTerrainPOIItem.cs 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* INFINITY CODE 2013-2019 */
  2. /* http://www.infinity-code.com */
  3. using UnityEngine;
  4. namespace InfinityCode.RealWorldTerrain
  5. {
  6. /// <summary>
  7. /// Class of POI instance.
  8. /// </summary>
  9. public class RealWorldTerrainPOIItem : MonoBehaviour
  10. {
  11. /// <summary>
  12. /// The title of the POI.
  13. /// </summary>
  14. public string title;
  15. /// <summary>
  16. /// Longitude.
  17. /// </summary>
  18. public double x;
  19. /// <summary>
  20. /// Latitude.
  21. /// </summary>
  22. public double y;
  23. /// <summary>
  24. /// Altitude
  25. /// </summary>
  26. public float altitude;
  27. /// <summary>
  28. /// Sets POI prefs.
  29. /// </summary>
  30. /// <param name="poi">Reference to POI.</param>
  31. public void SetPrefs(RealWorldTerrainPOI poi)
  32. {
  33. title = poi.title;
  34. x = poi.x;
  35. y = poi.y;
  36. altitude = poi.altitude;
  37. }
  38. }
  39. }