Pack() public method

Create an OSDMap from the appearance data
public Pack ( ) : OSDMap
return OSDMap
        protected LSL_Key SaveAppearanceToNotecard(IScenePresence sp, string notecard)
        {
            IAvatarAppearanceModule aa = sp.RequestModuleInterface<IAvatarAppearanceModule> ();
            if (aa != null)
            {
                var appearance = new AvatarAppearance (aa.Appearance);
                OSDMap appearancePacked = appearance.Pack ();
 
                TaskInventoryItem item
                = SaveNotecard (notecard, "Avatar Appearance", OSDParser.SerializeLLSDXmlString(appearancePacked), true);
 
                return new LSL_Key (item.AssetID.ToString ());
            }
        
            return new LSL_Key(UUID.Zero.ToString());
        }