public void AddAccessory(Appearance apr) { if (Accessories.ContainsKey(apr)) { return; } var add = AddAppearance(apr); Accessories.Add(apr, add); }
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); }
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; }
public void RemoveAccessory(Appearance apr) { if (Accessories.ContainsKey(apr)) { RemoveAppearance(Accessories[apr], true); Accessories.Remove(apr); } }