OpenSim.Region.Framework.Scenes.Scene.IncomingChildAgentDataUpdate C# (CSharp) Method

IncomingChildAgentDataUpdate() public method

We've got an update about an agent that sees into this region, send it to ScenePresence for processing It's the full data.
public IncomingChildAgentDataUpdate ( AgentData cAgentData ) : bool
cAgentData AgentData Agent that contains all of the relevant things about an agent. /// Appearance, animations, position, etc.
return bool
        public virtual bool IncomingChildAgentDataUpdate(AgentData cAgentData)
        {
            m_log.DebugFormat(
                "[SCENE]: Incoming child agent update for {0} in {1}", cAgentData.AgentID, RegionInfo.RegionName);

            // XPTO: if this agent is not allowed here as root, always return false

            // We have to wait until the viewer contacts this region after receiving EAC.
            // That calls AddNewClient, which finally creates the ScenePresence
            ILandObject nearestParcel = GetNearestAllowedParcel(cAgentData.AgentID, Constants.RegionSize / 2, Constants.RegionSize / 2);
            if (nearestParcel == null)
            {
                m_log.DebugFormat("[SCENE]: Denying root agent entry to {0}: no allowed parcel", cAgentData.AgentID);
                return false;
            }

            ScenePresence childAgentUpdate = WaitGetScenePresence(cAgentData.AgentID);
            if (childAgentUpdate != null)
            {
                childAgentUpdate.ChildAgentDataUpdate(cAgentData);
                return true;
            }

            return false;
        }

Same methods

Scene::IncomingChildAgentDataUpdate ( AgentPosition cAgentData ) : bool
Scene