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
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }