GetAppearance() public method

Gets the ContentID for the appearances referenced by this Outfit.
public GetAppearance ( AppearanceType type ) : ContentID
type AppearanceType The type of appearance to get.
return FSO.Common.Content.ContentID
Example #1
0
        public void RemoveAccessory(Outfit oft)
        {
            var aprId      = oft.GetAppearance(m_Appearance);
            var appearance = FSO.Content.Content.Get().AvatarAppearances.Get(aprId);

            this.RemoveAccessory(appearance);
        }
Example #2
0
        public void AddAccessory(Outfit oft)
        {
            var aprId      = oft.GetAppearance(m_Appearance);
            var appearance = FSO.Content.GameContent.Get.AvatarAppearances.Get(aprId);

            this.AddAccessory(appearance);
        }
Example #3
0
 /// <summary>
 /// Reloads the head mesh.
 /// </summary>
 private void ReloadHead()
 {
     if (m_HeadInstance != null){
         base.RemoveAppearance(m_HeadInstance, true);
     }
     if (m_Head != null)
     {
         var AppearanceID = m_Head.GetAppearance(m_Appearance);
         var Appearance = FSO.Content.Content.Get().AvatarAppearances.Get(AppearanceID);
         if (Appearance != null)
         {
             m_HeadInstance = base.AddAppearance(Appearance, m_Head.TS1TextureID);
         }
     }
 }
Example #4
0
 /// <summary>
 /// Reloads the body mesh.
 /// </summary>
 private void ReloadBody()
 {
     if (m_BodyInstance != null)
     {
         base.RemoveAppearance(m_BodyInstance, true);
     }
     if (m_Body != null)
     {
         var AppearanceID = m_Body.GetAppearance(m_Appearance);
         var Appearance   = FSO.Content.Content.Get().AvatarAppearances.Get(AppearanceID);
         if (Appearance != null)
         {
             m_BodyInstance = base.AddAppearance(Appearance);
         }
     }
 }