28 using OpenSim.Region.Framework.Interfaces;
34 #region ITerrainFloodEffect Members
37 int startX,
int endX,
int startY,
int endY)
43 for (x = startX; x <= endX; x++)
45 for (y = startY; y <= endY; y++)
55 double avg = sum / steps;
57 double str = 0.1 * strength;
59 for (x = startX; x <= endX; x++)
61 for (y = startY; y <= endY; y++)
64 map[x, y] = (map[x, y] * (1.0 - str)) + (avg * str);
void FloodEffect(ITerrainChannel map, bool[,] fillArea, double strength, int startX, int endX, int startY, int endY)
Interactive OpenSim region server