From db5a42ffac7e46d88ef434b939230290d78530a7 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sun, 16 Mar 2014 21:31:38 -0700 Subject: varregion: send terrain patches from where the avatar outward if the parameter [Terrain]SendTerrainUpdatesByViewDistance=true. This tracks which patches have been sent to each client and outputs the patches as the avatar moves. --- OpenSim/Region/Framework/Interfaces/ITerrainModule.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Framework/Interfaces') diff --git a/OpenSim/Region/Framework/Interfaces/ITerrainModule.cs b/OpenSim/Region/Framework/Interfaces/ITerrainModule.cs index a6f5d98..28f797a 100644 --- a/OpenSim/Region/Framework/Interfaces/ITerrainModule.cs +++ b/OpenSim/Region/Framework/Interfaces/ITerrainModule.cs @@ -24,9 +24,10 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System.IO; +using OpenSim.Framework; -using System.IO; using OpenMetaverse; namespace OpenSim.Region.Framework.Interfaces @@ -44,6 +45,12 @@ namespace OpenSim.Region.Framework.Interfaces void TaintTerrain(); /// + /// When a client initially connects, all the terrain must be pushed to the viewer. + /// This call causes all the terrain patches to be sent to the client. + /// + void PushTerrain(IClientAPI pClient); + + /// /// Load a terrain from a stream. /// /// -- cgit v1.1