private static Designator_Install NewDesignatorFor(ThingDef artDef) { Designator_Install designator_Install = new Designator_Install(); designator_Install.hotKey = KeyBindingDefOf.Misc1; return(designator_Install); }
public static Designator_Install DesignatorFor(ThingDef artDef) { Designator_Install designator_Install = default(Designator_Install); if (InstallationDesignatorDatabase.designators.TryGetValue(artDef, out designator_Install)) { return(designator_Install); } designator_Install = InstallationDesignatorDatabase.NewDesignatorFor(artDef); InstallationDesignatorDatabase.designators.Add(artDef, designator_Install); return(designator_Install); }