OpenSim.Region.Framework.Scenes.SceneCommunicationService.SendChildAgentDataUpdate C# (CSharp) Method

SendChildAgentDataUpdate() public method

public SendChildAgentDataUpdate ( AgentPosition cAgentData, ScenePresence presence ) : void
cAgentData OpenSim.Framework.AgentPosition
presence ScenePresence
return void
        public void SendChildAgentDataUpdate(AgentPosition cAgentData, ScenePresence presence)
        {
            // This assumes that we know what our neighbors are.
            try
            {
                foreach (ulong regionHandle in presence.KnownChildRegionHandles)
                {
                    if (regionHandle != m_regionInfo.RegionHandle)
                    {
                        SendChildAgentDataUpdateDelegate d = SendChildAgentDataUpdateAsync;
                        d.BeginInvoke(cAgentData, regionHandle,
                                      SendChildAgentDataUpdateCompleted,
                                      d);
                    }
                }
            }
            catch (InvalidOperationException)
            {
                // We're ignoring a collection was modified error because this data gets old and outdated fast.
            }

        }