Beispiel #1
0
 public void AddAccessory(Appearance apr)
 {
     if (Accessories.ContainsKey(apr))
     {
         return;
     }
     var add = AddAppearance(apr);
     Accessories.Add(apr, add);
 }
Beispiel #2
0
        protected AvatarAppearanceInstance AddAppearance(Appearance appearance)
        {
            var result = new AvatarAppearanceInstance();

            result.Bindings = new List <AvatarBindingInstance>();

            foreach (var bindingReference in appearance.Bindings)
            {
                var binding = Content.Get().AvatarBindings.Get(bindingReference.TypeID, bindingReference.FileID);
                if (binding == null)
                {
                    continue;
                }
                result.Bindings.Add(AddBinding(binding));
            }

            return(result);
        }
Beispiel #3
0
        protected AvatarAppearanceInstance AddAppearance(Appearance appearance)
        {
            var result = new AvatarAppearanceInstance();
            result.Bindings = new List<AvatarBindingInstance>();

            foreach (var bindingReference in appearance.Bindings)
            {
                var binding = Content.Get().AvatarBindings.Get(bindingReference.TypeID, bindingReference.FileID);
                if (binding == null) { continue; }
                result.Bindings.Add(AddBinding(binding));
            }

            return result;
        }
Beispiel #4
0
 public void RemoveAccessory(Appearance apr)
 {
     if (Accessories.ContainsKey(apr))
     {
         RemoveAppearance(Accessories[apr], true);
         Accessories.Remove(apr);
     }
 }