本文整理汇总了C#中OpenSim.Framework.AvatarAppearance.GetWearableOfType方法的典型用法代码示例。如果您正苦于以下问题:C# AvatarAppearance.GetWearableOfType方法的具体用法?C# AvatarAppearance.GetWearableOfType怎么用?C# AvatarAppearance.GetWearableOfType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OpenSim.Framework.AvatarAppearance
的用法示例。
在下文中一共展示了AvatarAppearance.GetWearableOfType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateParametersForAppearance
private static void CreateParametersForAppearance(AvatarAppearance appearance, Dictionary<string, object> parms)
{
parms.Add("?owner", appearance.Owner.ToString());
parms.Add("?serial", appearance.Serial);
parms.Add("?visual_params", appearance.VisualParams);
parms.Add("?texture", appearance.Texture.GetBytes());
parms.Add("?avatar_height", appearance.AvatarHeight);
// The Old Mechanism. 1:1 point to wearable
AvatarWearable wearable;
wearable = appearance.GetWearableOfType(AvatarWearable.BODY);
parms.Add("?body_item", wearable.ItemID.ToString());
parms.Add("?body_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.SKIN);
parms.Add("?skin_item", wearable.ItemID.ToString());
parms.Add("?skin_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.HAIR);
parms.Add("?hair_item", wearable.ItemID.ToString());
parms.Add("?hair_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.EYES);
parms.Add("?eyes_item", wearable.ItemID.ToString());
parms.Add("?eyes_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.SHIRT);
parms.Add("?shirt_item", wearable.ItemID.ToString());
parms.Add("?shirt_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.PANTS);
parms.Add("?pants_item", wearable.ItemID.ToString());
parms.Add("?pants_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.SHOES);
parms.Add("?shoes_item", wearable.ItemID.ToString());
parms.Add("?shoes_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.SOCKS);
parms.Add("?socks_item", wearable.ItemID.ToString());
parms.Add("?socks_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.JACKET);
parms.Add("?jacket_item", wearable.ItemID.ToString());
parms.Add("?jacket_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.GLOVES);
parms.Add("?gloves_item", wearable.ItemID.ToString());
parms.Add("?gloves_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.UNDERSHIRT);
parms.Add("?undershirt_item", wearable.ItemID.ToString());
parms.Add("?undershirt_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.UNDERPANTS);
parms.Add("?underpants_item", wearable.ItemID.ToString());
parms.Add("?underpants_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.SKIRT);
parms.Add("?skirt_item", wearable.ItemID.ToString());
parms.Add("?skirt_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.ALPHA);
parms.Add("?alpha_item", wearable.ItemID.ToString());
parms.Add("?alpha_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.TATTOO);
parms.Add("?tattoo_item", wearable.ItemID.ToString());
parms.Add("?tattoo_asset", wearable.AssetID.ToString());
wearable = appearance.GetWearableOfType(AvatarWearable.PHYSICS);
parms.Add("?physics_item", wearable.ItemID.ToString());
parms.Add("?physics_asset", wearable.AssetID.ToString());
}