OSDN Git Service

W.I.P. #2 Designators for POI - partly implimented, and more
[automap/automap.git] / Automap / Data / Designator.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
4 using System.Drawing;
5
6 using Vintagestory.API.Common;
7 using Vintagestory.API.MathTools;
8
9 namespace Automap
10 {
11         /// <summary>
12         /// Point of Interest Rule Designator
13         /// </summary>
14         public class Designator
15         {               
16                 public Color OverwriteColor;
17                 public System.Action<BlockPos, Block> SpecialAction;
18
19                 private Designator( )
20                 {
21                 throw new NotSupportedException( );
22                 }
23
24                 public Designator( Color overwriteColor)
25                 {                       
26                         this.OverwriteColor = overwriteColor;
27                 }
28
29                 public Designator(int blockID, Color overwriteColor, System.Action<BlockPos, Block> specialAct )
30                 {
31
32                 this.OverwriteColor = overwriteColor;
33                 this.SpecialAction = specialAct;
34                 }
35         }
36 }
37