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; }
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); }
public Designator_VeinMiner(MinerDesignatorDef def) : base(def) { }
public Designator_StripMiner(MinerDesignatorDef def) : base(def) { }
public Designator_MineBrush(MinerDesignatorDef def) : base(def) { this.circleMat = def.HighlightTex; }