Exemplo n.º 1
0
 public string GetDescription(ApparelAddonType type)
 {
     if (type != ApparelAddonType.Backpack && type != ApparelAddonType.NorthOnly && type != ApparelAddonType.SouthOnly)
     {
         if (type == ApparelAddonType.Both)
         {
             return("Pauldrons");
         }
         return(type.ToString() + " Pauldron");
     }
     else
     {
         return(type.ToString());
     }
 }
Exemplo n.º 2
0
 /*
  * public bool ShouldDrawPauldron(bool portrait, Rot4 bodyFacing, Vector2 size, ShoulderPadEntry Entry, out Graphic pauldronMaterial, out Mesh pauldronMesh)
  * {
  *  pauldronMaterial = null;
  *  pauldronMesh = !onHead ? MeshPool.humanlikeBodySet.MeshAt(bodyFacing) : MeshPool.humanlikeHeadSet.MeshAt(bodyFacing);
  *  if (AdeptusIntergrationUtility.enabled_AlienRaces)
  *  {
  *      pauldronMesh = GetPauldronMesh(portrait, pawn, bodyFacing, !onHead);
  *  }
  *  this.size = size;
  *  if (pawn.RaceProps.Humanlike)
  *  {
  *      if (Entry != null)
  *      {
  *          if (this.CheckPauldronRotation(bodyFacing, Entry.shoulderPadType))
  *          {
  *              Log.Message("pawn "+pawn + " Wearer "+ apparel.Wearer);
  *              if (Entry.Graphic==null || pawn != apparel.Wearer)
  *              {
  *                  wearer = apparel.Wearer;
  *              //    Log.Message("pawn = Wearer" + (pawn != apparel.Wearer));
  *              //    Log.Message(string.Format("ShouldDrawPauldron UpdatePadGraphic"));
  *                  Entry.UpdateGraphic();
  *              }
  *              pauldronMaterial = Entry.Graphic;//.GetColoredVersion(shader, this.mainColorFor(Entry), this.secondaryColorFor(Entry)).MatAt(bodyFacing, this.parent);
  *              return true;
  *          }
  *          else
  *          {
  *          //    Log.Message(string.Format("CheckPauldronRotation false"));
  *          }
  *      }
  *  }
  *  else
  *  {
  *  //    Log.Message(string.Format("pawn.needs = null && pawn.story = null"));
  *  }
  *  return false;
  *
  * }
  */
 public bool CheckPauldronRotation(Rot4 bodyFacing, ApparelAddonType shoulderPadType)
 {
     if (shoulderPadType == ApparelAddonType.Left && bodyFacing == Rot4.East)
     {
         return(false);
     }
     if (shoulderPadType == ApparelAddonType.Right && bodyFacing == Rot4.West)
     {
         return(false);
     }
     if (shoulderPadType == ApparelAddonType.SouthOnly && bodyFacing != Rot4.South)
     {
         return(false);
     }
     if (shoulderPadType == ApparelAddonType.NorthOnly && bodyFacing != Rot4.North)
     {
         return(false);
     }
     return(true);
 }