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


C# IClientAPI.SendWearables方法代码示例

本文整理汇总了C#中IClientAPI.SendWearables方法的典型用法代码示例。如果您正苦于以下问题:C# IClientAPI.SendWearables方法的具体用法?C# IClientAPI.SendWearables怎么用?C# IClientAPI.SendWearables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IClientAPI的用法示例。


在下文中一共展示了IClientAPI.SendWearables方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SendWearables

        /// <summary>
        /// Tell the client for this scene presence what items it should be wearing now
        /// </summary>
        public void SendWearables(IClientAPI client)
        {
            ScenePresence sp = m_scene.GetScenePresence(client.AgentId);
            if (sp == null)
            {
                m_log.WarnFormat("[AVATAR FACTORY MODULE]: SendWearables unable to find presence for {0}", client.AgentId);
                return;
            }

//            m_log.WarnFormat("[AVATAR FACTORY MODULE]: Received request for wearables of {0}", client.AgentId);

            client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial++);
        }
开发者ID:N3X15,项目名称:VoxelSim,代码行数:16,代码来源:AvatarFactoryModule.cs

示例2: Client_OnRequestWearables

 /// <summary>
 /// Tell the client for this scene presence what items it should be wearing now
 /// </summary>
 /// <param name="client"></param>
 private void Client_OnRequestWearables(IClientAPI client)
 {
     // m_log.DebugFormat("[AVFACTORY]: Client_OnRequestWearables called for {0} ({1})", client.Name, client.AgentId);
     ScenePresence sp = m_scene.GetScenePresence(client.AgentId);
     if (sp != null)
         client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial++);
     else
         m_log.WarnFormat("[AVFACTORY]: Client_OnRequestWearables unable to find presence for {0}", client.AgentId);
 }
开发者ID:rryk,项目名称:omp-server,代码行数:13,代码来源:AvatarFactoryModule.cs

示例3: SendWearables

        /// <summary>
        /// Tell the client for this scene presence what items it should be wearing now
        /// </summary>
        public void SendWearables(IClientAPI client)
        {
            ScenePresence sp = m_scene.GetScenePresence(client.AgentId);
            if (sp == null)
            {
                m_log.WarnFormat("[AVFACTORY]: SendWearables unable to find presence for {0}", client.AgentId);
                return;
            }

            // m_log.WarnFormat("[AVFACTORY]: Received request for wearables of {0}", client.AgentId);

            sp.m_InitialHasWearablesBeenSent = true;
            m_log.DebugFormat("[AVFACTORY]: Received request for wearables of {0}", sp.Name);
            client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial);
        }
开发者ID:NickyPerian,项目名称:Aurora,代码行数:18,代码来源:AvatarFactoryModule.cs

示例4: Client_OnRequestWearables

        /// <summary>
        /// Tell the client for this scene presence what items it should be wearing now
        /// </summary>
        /// <param name="client"></param>
        private void Client_OnRequestWearables(IClientAPI client)
        {
            Util.FireAndForget(delegate(object x)
            {
                Thread.Sleep(4000);

                // m_log.DebugFormat("[AVFACTORY]: Client_OnRequestWearables called for {0} ({1})", client.Name, client.AgentId);
                ScenePresence sp = m_scene.GetScenePresence(client.AgentId);
                if (sp != null)
                    client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial++);
                else
                    m_log.WarnFormat("[AVFACTORY]: Client_OnRequestWearables unable to find presence for {0}", client.AgentId);
            }, null, "AvatarFactoryModule.OnClientRequestWearables");
        }
开发者ID:emperorstarfinder,项目名称:Opensim2,代码行数:18,代码来源:AvatarFactoryModule.cs

示例5: Client_OnRequestWearables

        /// <summary>
        /// Tell the client for this scene presence what items it should be wearing now
        /// </summary>
        /// <param name="client"></param>
        private void Client_OnRequestWearables(IClientAPI client)
        {
            if (m_log.IsDebugEnabled) {
                m_log.DebugFormat ("{0} called", System.Reflection.MethodBase.GetCurrentMethod ().Name);
            }

            ScenePresence sp = m_scene.GetScenePresence(client.AgentId);
            if (sp != null)
                client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial++);
            else
                m_log.WarnFormat("[AVFACTORY]: Client_OnRequestWearables unable to find presence for {0}", client.AgentId);
        }
开发者ID:AkiraSonoda,项目名称:akisim,代码行数:16,代码来源:AvatarFactoryModule.cs


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