[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,69 @@
namespace Mapbox.Unity.Map
{
public class SubLayerCustomStyle : ISubLayerCustomStyle
{
private GeometryMaterialOptions _materialOptions;
public SubLayerCustomStyle(GeometryMaterialOptions materialOptions)
{
_materialOptions = materialOptions;
}
public UvMapType TexturingType
{
get
{
return _materialOptions.texturingType;
}
set
{
if (_materialOptions.texturingType != value)
{
_materialOptions.texturingType = value;
_materialOptions.HasChanged = true;
}
}
}
private SubLayerCustomStyleTiled _tiled;
public ISubLayerCustomStyleTiled Tiled
{
get
{
if (_tiled == null)
{
_tiled = new SubLayerCustomStyleTiled(_materialOptions);
}
return _tiled;
}
}
private SubLayerCustomStyleAtlas _textureAtlas;
public ISubLayerCustomStyleAtlas TextureAtlas
{
get
{
if (_textureAtlas == null)
{
_textureAtlas = new SubLayerCustomStyleAtlas(_materialOptions);
}
return _textureAtlas;
}
}
private SubLayerCustomStyleAtlasWithColorPallete _textureAtlasPallete;
public ISubLayerCustomStyleAtlasWithColorPallete TextureAtlasWithColorPallete
{
get
{
if (_textureAtlasPallete == null)
{
_textureAtlasPallete = new SubLayerCustomStyleAtlasWithColorPallete(_materialOptions);
}
return _textureAtlasPallete;
}
}
}
}