[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 @@
namespace Mapbox.Unity.Map
{
using System;
using UnityEngine;
[Serializable]
public class RangeTileProviderOptions : ExtentOptions
{
[Range(0, 10)]
public int west = 1;
[Range(0, 10)]
public int north = 1;
[Range(0, 10)]
public int east = 1;
[Range(0, 10)]
public int south = 1;
public override void SetOptions(ExtentOptions extentOptions)
{
RangeTileProviderOptions options = extentOptions as RangeTileProviderOptions;
if (options != null)
{
west = options.west;
north = options.north;
east = options.east;
south = options.south;
}
else
{
Debug.LogError("ExtentOptions type mismatch : Using " + extentOptions.GetType() + " to set extent of type " + this.GetType());
}
}
public void SetOptions(int northRange = 1, int southRange = 1, int eastRange = 1, int westRange = 1)
{
west = westRange;
north = northRange;
east = eastRange;
south = southRange;
}
}
}