コード例 #1
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="config">The data layer settings.</param>
 public BuildableLayer(LayerConfig config)
     : base(I18n.Buildable_Name(), config)
 {
     this.Legend = new[]
     {
         this.Buildable    = new LegendEntry(I18n.Keys.Buildable_Buildable, Color.Green),
         this.Occupied     = new LegendEntry(I18n.Keys.Buildable_Occupied, Color.Orange),
         this.NonBuildable = new LegendEntry(I18n.Keys.Buildable_NotBuildable, Color.Red)
     };
 }
コード例 #2
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <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 BuildableLayer(LayerConfig config, IInputHelper input, IMonitor monitor)
     : base(I18n.Buildable_Name(), config, input, monitor)
 {
     this.Legend = new[]
     {
         this.Buildable    = new LegendEntry(I18n.Keys.Buildable_Buildable, Color.Green),
         this.Occupied     = new LegendEntry(I18n.Keys.Buildable_Occupied, Color.Orange),
         this.NonBuildable = new LegendEntry(I18n.Keys.Buildable_NotBuildable, Color.Red)
     };
 }