private void ReadXMLData()
 {
     def2 = (ThingDef_Building_RechargeStation)def;
     if (!def2.secondaryGraphicPath.NullOrEmpty())
     {
         SecondaryGraphicPath        = def2.secondaryGraphicPath;
         MedicalGraphicPath          = def2.medicalGraphicPath;
         MedicalSecondaryGraphicPath = def2.medicalSecondaryGraphicPath;
         UI_ForceSleepButtonPath     = def2.uiButtonForceSleepPath;
     }
 }
        private void GetGraphics()
        {
            if (SecondaryGraphicPath.NullOrEmpty())
            {
                ReadXMLData();
            }

            if (def2 == null)
            {
                def2 = (ThingDef_Building_RechargeStation)def;
            }

            if (PrimaryGraphic == null && !def.graphicData.texPath.NullOrEmpty())
            {
                PrimaryGraphic = GraphicDatabase.Get <Graphic_Multi>(def.graphicData.texPath, def.graphic.Shader, def.graphic.drawSize, def.graphic.Color, def.graphic.ColorTwo);
            }

            if (SecondaryGraphic == null && !SecondaryGraphicPath.NullOrEmpty())
            {
                SecondaryGraphic = GraphicDatabase.Get <Graphic_Multi>(SecondaryGraphicPath, def.graphic.Shader, def.graphic.drawSize, def.graphic.Color, def.graphic.ColorTwo);
            }

            if (MedicalGraphic == null && !MedicalGraphicPath.NullOrEmpty())
            {
                MedicalGraphic = GraphicDatabase.Get <Graphic_Multi>(MedicalGraphicPath, def.graphic.Shader, def.graphic.drawSize, def.graphic.Color, def.graphic.ColorTwo);
            }

            if (MedicalSecondaryGraphic == null)
            {
                if (!MedicalSecondaryGraphicPath.NullOrEmpty())
                {
                    MedicalSecondaryGraphic = GraphicDatabase.Get <Graphic_Multi>(MedicalSecondaryGraphicPath, def.graphic.Shader, def.graphic.drawSize, def.graphic.Color, def.graphic.ColorTwo);
                }
                else if (!MedicalGraphicPath.NullOrEmpty())
                {
                    MedicalSecondaryGraphic = GraphicDatabase.Get <Graphic_Multi>(MedicalGraphicPath, def.graphic.Shader, def.graphic.drawSize, def.graphic.Color, def.graphic.ColorTwo);
                }
            }
        }