From 62eaddbe14e0bf5098808294502c14a7ed4063c3 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 5 Mar 2009 04:24:22 +0000 Subject: Fixes Mantis #3255. Thank you kindly, MCortez, for a patch that: Changes to IWindModule interface: Change from assuming a single array of 256 Vector2 values to a lookup function that takes region x, y, z and returns a Vector3 * Changed llWind() to use new lookup method of IWindModule * Moved logic for determining the wind at a given point in the data array from llWind() to the Wind Module itself. --- OpenSim/Region/Framework/Interfaces/IWindModule.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Framework/Interfaces/IWindModule.cs') diff --git a/OpenSim/Region/Framework/Interfaces/IWindModule.cs b/OpenSim/Region/Framework/Interfaces/IWindModule.cs index 5b8b0ce..84effd0 100644 --- a/OpenSim/Region/Framework/Interfaces/IWindModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IWindModule.cs @@ -31,9 +31,10 @@ namespace OpenSim.Region.Framework.Interfaces { public interface IWindModule : IRegionModule { - Vector2[] WindSpeeds - { - get; - } + + /// + /// Retrieves the current wind speed at the given Region Coordinates + /// + Vector3 WindSpeed(int x, int y, int z); } } -- cgit v1.1