[TASK] Initial commit with basic product setup

This commit is contained in:
2019-08-18 13:50:14 +02:00
commit 01a66a8e1f
2548 changed files with 167528 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using System;
using Mapbox.Map;
using Mapbox.Unity.Map.TileProviders;
namespace Mapbox.Unity.Map.Interfaces
{
public interface ITileProvider
{
event EventHandler<ExtentArgs> ExtentChanged;
ITileProviderOptions Options { get; }
// TODO: add cancel event?
// Alternatively, give mapvisualizer an object recycling strategy that can separately determine when to change gameobjects.
// This removal would essentially lead to a cancel request and nothing more.
void Initialize(IMap map);
// TODO: Maybe combine both these methods.
void SetOptions(ITileProviderOptions options);
// TODO: add reset/clear method?
}
public interface IUnifiedTileProvider
{
event Action<UnwrappedTileId> OnTileAdded;
event Action<UnwrappedTileId> OnTileRemoved;
// TODO: add cancel event?
// Alternatively, give mapvisualizer an object recycling strategy that can separately determine when to change gameobjects.
// This removal would essentially lead to a cancel request and nothing more.
void Initialize(IUnifiedMap map);
// TODO: add reset/clear method?
}
public class TileStateChangedEventArgs : EventArgs
{
public UnwrappedTileId TileId;
}
}