namespace Mapbox.Map
{
using System;
using Mapbox.Unity.MeshGeneration.Data;
using System.Collections.Generic;
using System.Collections.ObjectModel;
public class TileErrorEventArgs : EventArgs
{
///
/// The tile identifier.
///
public CanonicalTileId TileId;
///
/// The exceptions.
///
public List Exceptions;
///
/// The unity tile instance.
///
public UnityTile UnityTileInstance;
///
/// The type of the tile.
///
public Type TileType;
///
/// Initializes a new instance of the class.
///
/// Tile identifier.
/// Tile type.
/// Unity tile instance.
/// Exceptions as a List
public TileErrorEventArgs(CanonicalTileId TileId, Type TileType, UnityTile UnityTileInstance, List Exceptions)
{
this.TileId = TileId;
this.Exceptions = Exceptions;
this.UnityTileInstance = UnityTileInstance;
this.TileType = TileType;
}
///
/// Initializes a new instance of the class.
///
/// Tile identifier.
/// Tile type.
/// Unity tile instance.
/// Exceptions as a ReadOnlyCollection
public TileErrorEventArgs(CanonicalTileId TileId, Type TileType, UnityTile UnityTileInstance, ReadOnlyCollection Exceptions)
{
this.TileId = TileId;
List _exceptions = new List();
foreach (var exception in Exceptions)
{
_exceptions.Add(exception);
}
this.Exceptions = _exceptions;
this.UnityTileInstance = UnityTileInstance;
this.TileType = TileType;
}
}
}