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
コード例 #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);
        }
コード例 #2
0
ファイル: SimAvatar.cs プロジェクト: HarryFreeMyLand/newso
        public void AddAccessory(Outfit oft)
        {
            var aprId      = oft.GetAppearance(m_Appearance);
            var appearance = FSO.Content.GameContent.Get.AvatarAppearances.Get(aprId);

            this.AddAccessory(appearance);
        }
コード例 #3
0
ファイル: SimAvatar.cs プロジェクト: fourks/FreeSO
 /// <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);
         }
     }
 }
コード例 #4
0
ファイル: SimAvatar.cs プロジェクト: pepster98/FreeSO
 /// <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);
         }
     }
 }