UpdateAgent() public method

public UpdateAgent ( GridRegion destination, AgentData cAgentData ) : bool
destination OpenSim.Services.Interfaces.GridRegion
cAgentData OpenSim.Framework.AgentData
return bool
        public bool UpdateAgent(GridRegion destination, AgentData cAgentData, EntityTransferContext ctx)
        {
            if (destination == null)
            {
                return(false);
            }

            // Try local first
            if (m_localBackend.IsLocalRegion(destination.RegionID))
            {
                return(m_localBackend.UpdateAgent(destination, cAgentData, ctx));
            }

            return(m_remoteConnector.UpdateAgent(destination, cAgentData, ctx));
        }
Ejemplo n.º 2
0
        public bool UpdateAgent(GridRegion destination, AgentData cAgentData)
        {
            if (destination == null)
            {
                return(false);
            }

            // Try local first
            if (m_localBackend.IsLocalRegion(destination.RegionHandle))
            {
                return(m_localBackend.UpdateAgent(destination, cAgentData));
            }

            return(m_remoteConnector.UpdateAgent(destination, cAgentData));
        }