OpenSim.Region.Framework.Scenes.ScenePresence.SendFullUpdateToOtherClient C# (CSharp) Méthode

SendFullUpdateToOtherClient() public méthode

Tell other client about this avatar (The client previously didn't know or had outdated details about this avatar)
public SendFullUpdateToOtherClient ( ScenePresence remoteAvatar ) : void
remoteAvatar ScenePresence
Résultat void
        public void SendFullUpdateToOtherClient(ScenePresence remoteAvatar)
        {
            // 2 stage check is needed.
            if (remoteAvatar == null)
                return;

            IClientAPI cl = remoteAvatar.ControllingClient;
            if (cl == null)
                return;

            if (m_appearance.Texture == null)
                return;

// MT: This is needed for sit. It's legal to send it to oneself, and the name
//     of the method is a misnomer
//
//            if (LocalId == remoteAvatar.LocalId)
//            {
//                m_log.WarnFormat("[SCENEPRESENCE]: An agent is attempting to send avatar data to itself; {0}", UUID);
//                return;
//            }

            if (IsChildAgent)
            {
                m_log.WarnFormat("[SCENEPRESENCE]: A child agent is attempting to send out avatar data; {0}", UUID);
                return;
            }
            
            remoteAvatar.m_controllingClient.SendAvatarDataImmediate(this);
            m_scene.StatsReporter.AddAgentUpdates(1);
        }
ScenePresence