Skip to content

Commit

Permalink
unity: restore GeoPosition type
Browse files Browse the repository at this point in the history
  • Loading branch information
reinterpretcat committed Oct 8, 2016
1 parent e8fe3d6 commit 5d22b03
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion unity/demo/Assets/Scripts/DeviceLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections;
using UnityEngine;
using UtyMap.Unity.Core;
using UtyMap.Unity.Core.Positioning;
using UtyMap.Unity.Infrastructure;
using UtyMap.Unity.Infrastructure.Diagnostic;

Expand Down
1 change: 0 additions & 1 deletion unity/demo/Assets/Scripts/Menu/PlayGamePanelManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UtyMap.Unity.Core;
using UtyMap.Unity.Core.Positioning;
using UtyMap.Unity.Infrastructure;
using UtyMap.Unity.Infrastructure.Diagnostic;
using UtyMap.Unity.Maps.Geocoding;
Expand Down
16 changes: 16 additions & 0 deletions unity/library/UtyMap.Unity/Core/GeoPosition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;

namespace UtyMap.Unity.Core
{
/// <summary>
/// Represent geo position which is produced by location services (e.g. GLONASS, GPS).
/// </summary>
public class GeoPosition
{
/// <summary> Geo coordinate. </summary>
public GeoCoordinate Coordinate;

/// <summary> Time.</summary>
public TimeSpan Time = TimeSpan.MinValue;
}
}
1 change: 1 addition & 0 deletions unity/library/UtyMap.Unity/UtyMap.Unity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<Compile Include="CompositionRoot.cs" />
<Compile Include="Core\BoundingBox.cs" />
<Compile Include="Core\GeoCoordinate.cs" />
<Compile Include="Core\GeoPosition.cs" />
<Compile Include="Core\IProjection.cs" />
<Compile Include="Core\Models\Element.cs" />
<Compile Include="Core\Models\Mesh.cs" />
Expand Down

0 comments on commit 5d22b03

Please sign in to comment.