/********* ** Public methods *********/ /// <summary>Construct an instance.</summary> /// <param name="translations">Provides translations in stored in the mod folder's i18n folder.</param> /// <param name="config">The data layer settings.</param> /// <param name="input">The API for checking input state.</param> /// <param name="monitor">Writes messages to the SMAPI log.</param> public BeeHouseLayer(ITranslationHelper translations, LayerConfig config, IInputHelper input, IMonitor monitor) : base(translations.Get("bee-houses.name"), config, input, monitor) { this.Legend = new[] { this.Covered = new LegendEntry(translations, "bee-houses.range", Color.Green) }; this.RelativeRange = BeeHouseLayer .GetRelativeCoverage() .ToArray(); }
/********* ** Public methods *********/ /// <summary>Construct an instance.</summary> /// <param name="config">The data layer settings.</param> public BeeHouseLayer(LayerConfig config) : base(I18n.BeeHouses_Name(), config) { this.Legend = new[] { this.Covered = new LegendEntry(I18n.Keys.BeeHouses_Range, Color.Green) }; this.RelativeRange = BeeHouseLayer .GetRelativeCoverage() .ToArray(); }
/********* ** Public methods *********/ /// <summary>Construct an instance.</summary> /// <param name="translations">Provides translations in stored in the mod folder's i18n folder.</param> /// <param name="config">The data layer settings.</param> /// <param name="hasBeeHouseFlowerRangeFix">Whether the player has the Bee House Flower Range Fix mod.</param> public BeeHouseLayer(ITranslationHelper translations, LayerConfig config, bool hasBeeHouseFlowerRangeFix) : base(translations.Get("bee-houses.name"), config) { this.Legend = new[] { new LegendEntry(translations.Get("bee-houses.range"), this.CoveredColor) }; this.RelativeRange = BeeHouseLayer .GetRelativeCoverage(maxLoops: hasBeeHouseFlowerRangeFix ? 166 : 150) .ToArray(); }