2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
6 using Vintagestory.API.Client;
7 using Vintagestory.API.Common;
8 using Vintagestory.API.MathTools;
12 public delegate void DesignatonAction(ICoreClientAPI clientAPI, PointsOfInterest poi, BlockPos posn, Block block);
15 /// Point of Interest Rule Designator
17 public class Designator
19 public Color OverwriteColor;
20 public DesignatonAction SpecialAction;
21 public AssetLocation Pattern;
22 public EnumBlockMaterial? Material;
26 throw new NotSupportedException( );
29 public Designator( AssetLocation pattern , Color overwriteColor, EnumBlockMaterial? material)
31 this.Pattern = pattern;
32 this.OverwriteColor = overwriteColor;
36 public Designator(AssetLocation pattern, Color overwriteColor, EnumBlockMaterial? material ,DesignatonAction specialAct )
38 this.Pattern = pattern;
39 this.OverwriteColor = overwriteColor;
40 this.Material = material;
41 this.SpecialAction = specialAct;
44 public override string ToString( )
46 return Pattern.ToShortString() +"|"+ OverwriteColor.Name + "|" + Material ?? "";