当前位置: 首页>>代码示例>>C#>>正文


C# AvatarAppearance.GetWearableOfType方法代码示例

本文整理汇总了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());
        }
开发者ID:digitalmystic,项目名称:halcyon,代码行数:59,代码来源:MySQLUserData.cs


注:本文中的OpenSim.Framework.AvatarAppearance.GetWearableOfType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。