aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/XferModule.cs2
-rw-r--r--OpenSim/Region/Environment/RegionManager.cs3
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs9
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs7
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneBase.cs1
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs2
6 files changed, 18 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/XferModule.cs b/OpenSim/Region/Environment/Modules/XferModule.cs
index b0d1bf6..a0327e9 100644
--- a/OpenSim/Region/Environment/Modules/XferModule.cs
+++ b/OpenSim/Region/Environment/Modules/XferModule.cs
@@ -27,7 +27,7 @@ namespace OpenSim.Region.Environment.Modules
27 m_scene = scene; 27 m_scene = scene;
28 m_scene.EventManager.OnNewClient += NewClient; 28 m_scene.EventManager.OnNewClient += NewClient;
29 29
30 m_scene.RegisterAPIMethod("API_AddXferFile", new ModuleAPIMethod<bool, string, byte[]>(this.AddNewFile)); 30 m_scene.RegisterAPIMethod("API_AddXferFile", new ModuleAPIMethod2<bool, string, byte[]>(this.AddNewFile));
31 } 31 }
32 32
33 public void PostInitialise() 33 public void PostInitialise()
diff --git a/OpenSim/Region/Environment/RegionManager.cs b/OpenSim/Region/Environment/RegionManager.cs
index 0146b52..86a3626 100644
--- a/OpenSim/Region/Environment/RegionManager.cs
+++ b/OpenSim/Region/Environment/RegionManager.cs
@@ -9,7 +9,8 @@ using OpenSim.Region.Environment.LandManagement;
9 9
10namespace OpenSim.Region.Environment 10namespace OpenSim.Region.Environment
11{ 11{
12 public delegate TResult ModuleAPIMethod<TResult, TParam0, TParam1>(TParam0 param0, TParam1 param1); 12 public delegate TResult ModuleAPIMethod1<TResult, TParam0>(TParam0 param0);
13 public delegate TResult ModuleAPIMethod2<TResult, TParam0, TParam1>(TParam0 param0, TParam1 param1);
13 14
14 public class RegionManager 15 public class RegionManager
15 { 16 {
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index 568639f..a9ded3f 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -554,6 +554,15 @@ namespace OpenSim.Region.Environment.Scenes
554 } 554 }
555 } 555 }
556 556
557 public void StartAnimation(IClientAPI client, LLUUID animID, int seq)
558 {
559 List<ScenePresence> avatars = this.RequestAvatarList();
560 for (int i = 0; i < avatars.Count; i++)
561 {
562 avatars[i].ControllingClient.SendAnimation(animID, seq, client.AgentId);
563 }
564 }
565
557 public virtual void ProcessObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient) 566 public virtual void ProcessObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)
558 { 567 {
559 this.EventManager.TriggerObjectGrab(localID, offsetPos, remoteClient); 568 this.EventManager.TriggerObjectGrab(localID, offsetPos, remoteClient);
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index ba9569e..92f26ef 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -90,7 +90,7 @@ namespace OpenSim.Region.Environment.Scenes
90 //API method Delegates 90 //API method Delegates
91 91
92 // this most likely shouldn't be handled as a API method like this, but doing it for testing purposes 92 // this most likely shouldn't be handled as a API method like this, but doing it for testing purposes
93 public ModuleAPIMethod<bool, string, byte[]>AddXferFile = null; 93 public ModuleAPIMethod2<bool, string, byte[]>AddXferFile = null;
94 94
95 #region Properties 95 #region Properties
96 96
@@ -196,7 +196,7 @@ namespace OpenSim.Region.Environment.Scenes
196 196
197 private void SetMethodDelegates() 197 private void SetMethodDelegates()
198 { 198 {
199 AddXferFile = (ModuleAPIMethod<bool, string, byte[]>)this.RequestAPIMethod("API_AddXferFile"); 199 AddXferFile = (ModuleAPIMethod2<bool, string, byte[]>)this.RequestAPIMethod("API_AddXferFile");
200 } 200 }
201 201
202 #region Script Handling Methods 202 #region Script Handling Methods
@@ -267,7 +267,7 @@ namespace OpenSim.Region.Environment.Scenes
267 267
268 //backup scene data 268 //backup scene data
269 storageCount++; 269 storageCount++;
270 if (storageCount > 600) //set to how often you want to backup 270 if (storageCount > 1200) //set to how often you want to backup
271 { 271 {
272 Backup(); 272 Backup();
273 storageCount = 0; 273 storageCount = 0;
@@ -692,6 +692,7 @@ namespace OpenSim.Region.Environment.Scenes
692 692
693 protected virtual void SubscribeToClientEvents(IClientAPI client) 693 protected virtual void SubscribeToClientEvents(IClientAPI client)
694 { 694 {
695 // client.OnStartAnim += StartAnimation;
695 client.OnRegionHandShakeReply += SendLayerData; 696 client.OnRegionHandShakeReply += SendLayerData;
696 //remoteClient.OnRequestWearables += new GenericCall(this.GetInitialPrims); 697 //remoteClient.OnRequestWearables += new GenericCall(this.GetInitialPrims);
697 client.OnModifyTerrain += ModifyTerrain; 698 client.OnModifyTerrain += ModifyTerrain;
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs
index 3a2fab2..3740e1b 100644
--- a/OpenSim/Region/Environment/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs
@@ -35,6 +35,7 @@ using OpenSim.Framework.Types;
35using OpenSim.Framework.Communications.Caches; 35using OpenSim.Framework.Communications.Caches;
36using OpenSim.Region.Terrain; 36using OpenSim.Region.Terrain;
37using OpenSim.Framework; 37using OpenSim.Framework;
38using OpenSim.Region.Environment.Interfaces;
38 39
39namespace OpenSim.Region.Environment.Scenes 40namespace OpenSim.Region.Environment.Scenes
40{ 41{
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 0eeea89..e094ac6 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -157,7 +157,7 @@ namespace OpenSim.Region.Environment.Scenes
157 this.m_lastname = ControllingClient.LastName; 157 this.m_lastname = ControllingClient.LastName;
158 m_localId = m_scene.NextLocalId; 158 m_localId = m_scene.NextLocalId;
159 AbsolutePosition = ControllingClient.StartPos; 159 AbsolutePosition = ControllingClient.StartPos;
160 160
161 visualParams = new byte[218]; 161 visualParams = new byte[218];
162 for (int i = 0; i < 218; i++) 162 for (int i = 0; i < 218; i++)
163 { 163 {