예제 #1
0
 protected Designator_MineTool(MinerDesignatorDef def)
 {
     this.def              = def;
     this.defaultLabel     = def.label;
     this.defaultDesc      = def.description;
     this.icon             = def.IconTex;
     this.useMouseIcon     = true;
     this.soundDragSustain = SoundDefOf.Designate_DragStandard;
     this.soundDragChanged = SoundDefOf.Designate_DragStandard_Changed;
     this.soundSucceeded   = def.soundSucceeded;
     this.hotKey           = def.hotkeyDef;
 }
예제 #2
0
 private Designator_MineTool InstantiateDesignator(Type designatorType, MinerDesignatorDef designatorDef)
 {
     try
     {
         return((Designator_MineTool)Activator.CreateInstance(designatorType, new object[]
         {
             designatorDef
         }));
     }
     catch (Exception ex)
     {
         Bootstrapper.Logger.ReportException(ex, null, false, string.Format("instantiation of {0} with Def {1}", (designatorType != null) ? designatorType.FullName : "(null)", designatorDef));
     }
     return(null);
 }
예제 #3
0
 public Designator_VeinMiner(MinerDesignatorDef def) : base(def)
 {
 }
예제 #4
0
 public Designator_StripMiner(MinerDesignatorDef def) : base(def)
 {
 }
예제 #5
0
 public Designator_MineBrush(MinerDesignatorDef def) : base(def)
 {
     this.circleMat = def.HighlightTex;
 }