// Copyright (c) Strange Loop Games. All rights reserved.
// See LICENSE file in the project root for full license information.

namespace Eco.Mods.WorldLayers
{
    using Eco.Shared.Localization;
    using Eco.Shared.Math;
    using Eco.Shared.Utils;
    using Eco.Simulation.WorldLayers;
    using Eco.Simulation.WorldLayers.Components;
    using Eco.Simulation.WorldLayers.Layers;
    using Eco.World.Blocks;

    public class SpreadLayerSettingsTrampledSpread : SpreadLayerSettings
    {
        public SpreadLayerSettingsTrampledSpread() : base()
        {
            this.HeightLayerName = "Height";
            this.Name = LayerNames.TrampledSpread;
            this.MinimapName = Localizer.DoStr("Trampled Spread");
            this.InitMultiplier = 1f;
            this.SyncToClient = false;
            this.Range = new Range(0f, 1f);
            this.OverrideRenderRange = null;
            this.MinColor = new Color(1f, 1f, 1f);
            this.MaxColor = new Color(1f, 0.5f, 0.5f);
            this.SumRelevant = false;
            this.Unit = string.Empty;
            this.VoxelsPerEntry = 5;
            this.Category = WorldLayerCategory.Pollution;
            this.ValueType = WorldLayerValueType.Percent;
            this.AreaDescription = string.Empty;
            this.Components.Add( new BiomeComponent { TopBlock = typeof(DirtBlock) });
            this.SpreadRate = 0.12f;
            this.ZeroAtHeightDiff = 2f;
            this.SourceInfluenceRate = 1f;
            this.BaseLayerName = LayerNames.TrampledSum;
        }
    }
}
