Ejemplo n.º 1
0
 private void ReadFromXML()
 {
     this.BedTextures = (Clutter.ClutterThingDefs)this.def;
     if (!this.BedTextures.PrisonerBedTexture.NullOrEmpty())
     {
         this.PrisonerBedTexture = this.BedTextures.PrisonerBedTexture;
         this.MedicalBedTexture = this.BedTextures.MedicalBedTexture;
         this.MediPrisonerBedTexture = this.BedTextures.MedicalPrisonerBedTexture;
     }
 }
Ejemplo n.º 2
0
 private void GetGraphics()
 {
     if (this.PrisonerBedTexture.NullOrEmpty())
         this.ReadFromXML();
     if (this.BedTextures == null)
         this.BedTextures = (Clutter.ClutterThingDefs)this.def;
     if (this.PrimaryGraphic == null && !this.def.graphicData.texPath.NullOrEmpty())
     {
         this.PrimaryGraphic = GraphicDatabase.Get<Graphic_Multi>(this.def.graphicData.texPath);
         this.PrimaryGraphic.drawSize = this.def.graphicData.drawSize;
     }
     if (this.SecondaryGraphic == null && !this.PrisonerBedTexture.NullOrEmpty())
     {
         this.SecondaryGraphic = GraphicDatabase.Get<Graphic_Multi>(this.PrisonerBedTexture);
         this.SecondaryGraphic.drawSize = this.def.graphicData.drawSize;
     }
     if (this.MedicalGraphic == null && !this.MedicalBedTexture.NullOrEmpty())
     {
         this.MedicalGraphic = GraphicDatabase.Get<Graphic_Multi>(this.MedicalBedTexture);
         this.MedicalGraphic.drawSize = this.def.graphicData.drawSize;
     }
     if (this.MedicalSecondaryGraphic == null)
     {
         if (!this.MediPrisonerBedTexture.NullOrEmpty())
         {
             this.MedicalSecondaryGraphic = GraphicDatabase.Get<Graphic_Multi>(this.MediPrisonerBedTexture);
             this.MedicalSecondaryGraphic.drawSize = this.def.graphicData.drawSize;
         }
         else
         {
             if (!this.MedicalBedTexture.NullOrEmpty())
             {
                 this.MedicalGraphic = GraphicDatabase.Get<Graphic_Multi>(this.MedicalBedTexture);
                 this.MedicalGraphic.drawSize = this.def.graphicData.drawSize;
             }
         }
     }
 }