CreateObject() public method

public CreateObject ( GridRegion destination, ISceneObject sog, bool isLocalCall ) : bool
destination OpenSim.Services.Interfaces.GridRegion
sog ISceneObject
isLocalCall bool
return bool
        /**
         * Object-related communications
         */

        public bool CreateObject(GridRegion destination, Vector3 newPosition, ISceneObject sog, bool isLocalCall)
        {
            if (destination == null)
            {
                return(false);
            }

            // Try local first
            if (m_localBackend.CreateObject(destination, newPosition, sog, isLocalCall))
            {
                //m_log.Debug("[REST COMMS]: LocalBackEnd SendCreateObject succeeded");
                return(true);
            }

            // else do the remote thing
            if (!m_localBackend.IsLocalRegion(destination.RegionID))
            {
                return(m_remoteConnector.CreateObject(destination, newPosition, sog, isLocalCall));
            }

            return(false);
        }