aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/OpenSim.Framework/Interfaces
diff options
context:
space:
mode:
authorMW2007-05-27 18:52:42 +0000
committerMW2007-05-27 18:52:42 +0000
commitc746a2f9f4f0b1e7eea564effdae63472f79ab22 (patch)
tree54d23af3d168958bfec995cf2987cf5af79ac149 /Common/OpenSim.Framework/Interfaces
parentGoodbye World (diff)
downloadopensim-SC-c746a2f9f4f0b1e7eea564effdae63472f79ab22.zip
opensim-SC-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.gz
opensim-SC-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.bz2
opensim-SC-c746a2f9f4f0b1e7eea564effdae63472f79ab22.tar.xz
Should allow multiple worlds (and UDP servers) to be ran in one instance, just missing backend comms and working Avatar/primitives classes.
Diffstat (limited to 'Common/OpenSim.Framework/Interfaces')
-rw-r--r--Common/OpenSim.Framework/Interfaces/Config/IGenericConfig.cs (renamed from Common/OpenSim.Framework/Interfaces/IGenericConfig.cs)0
-rw-r--r--Common/OpenSim.Framework/Interfaces/Config/IGridConfig.cs (renamed from Common/OpenSim.Framework/Interfaces/IGridConfig.cs)0
-rw-r--r--Common/OpenSim.Framework/Interfaces/Config/IUserConfig.cs (renamed from Common/OpenSim.Framework/Interfaces/IUserConfig.cs)0
-rw-r--r--Common/OpenSim.Framework/Interfaces/IClientAPI.cs8
-rw-r--r--Common/OpenSim.Framework/Interfaces/IConfig.cs76
-rw-r--r--Common/OpenSim.Framework/Interfaces/IWorld.cs15
-rw-r--r--Common/OpenSim.Framework/Interfaces/Remoting/IGridServerHost.cs12
-rw-r--r--Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerClient.cs10
-rw-r--r--Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerHost.cs10
-rw-r--r--Common/OpenSim.Framework/Interfaces/Remoting/IRegionGridClient.cs11
-rw-r--r--Common/OpenSim.Framework/Interfaces/Remoting/IRegionSimHost.cs12
-rw-r--r--Common/OpenSim.Framework/Interfaces/Remoting/RegionGridClientBase.cs11
-rw-r--r--Common/OpenSim.Framework/Interfaces/Scripting/IScriptAPI.cs (renamed from Common/OpenSim.Framework/Interfaces/IScriptAPI.cs)0
-rw-r--r--Common/OpenSim.Framework/Interfaces/Scripting/IScriptEngine.cs (renamed from Common/OpenSim.Framework/Interfaces/IScriptEngine.cs)0
14 files changed, 88 insertions, 77 deletions
diff --git a/Common/OpenSim.Framework/Interfaces/IGenericConfig.cs b/Common/OpenSim.Framework/Interfaces/Config/IGenericConfig.cs
index a853fe4..a853fe4 100644
--- a/Common/OpenSim.Framework/Interfaces/IGenericConfig.cs
+++ b/Common/OpenSim.Framework/Interfaces/Config/IGenericConfig.cs
diff --git a/Common/OpenSim.Framework/Interfaces/IGridConfig.cs b/Common/OpenSim.Framework/Interfaces/Config/IGridConfig.cs
index b2f26da..b2f26da 100644
--- a/Common/OpenSim.Framework/Interfaces/IGridConfig.cs
+++ b/Common/OpenSim.Framework/Interfaces/Config/IGridConfig.cs
diff --git a/Common/OpenSim.Framework/Interfaces/IUserConfig.cs b/Common/OpenSim.Framework/Interfaces/Config/IUserConfig.cs
index e15867d..e15867d 100644
--- a/Common/OpenSim.Framework/Interfaces/IUserConfig.cs
+++ b/Common/OpenSim.Framework/Interfaces/Config/IUserConfig.cs
diff --git a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
index b6ae232..add6c00 100644
--- a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
+++ b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
@@ -35,7 +35,6 @@ namespace OpenSim.Framework.Interfaces
35 event StartAnim OnStartAnim; 35 event StartAnim OnStartAnim;
36 event LinkObjects OnLinkObjects; 36 event LinkObjects OnLinkObjects;
37 event GenericCall4 OnDeRezObject; 37 event GenericCall4 OnDeRezObject;
38 event ModifyTerrain OnModifyTerrain;
39 event GenericCall OnRegionHandShakeReply; 38 event GenericCall OnRegionHandShakeReply;
40 event GenericCall OnRequestWearables; 39 event GenericCall OnRequestWearables;
41 event GenericCall2 OnCompleteMovementToRegion; 40 event GenericCall2 OnCompleteMovementToRegion;
@@ -57,6 +56,13 @@ namespace OpenSim.Framework.Interfaces
57 get; 56 get;
58 set; 57 set;
59 } 58 }
59
60 LLUUID AgentId
61 {
62 get;
63 }
64
65 void OutPacket(Packet newPack);
60 void SendAppearance(AvatarWearable[] wearables); 66 void SendAppearance(AvatarWearable[] wearables);
61 void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID); 67 void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID);
62 } 68 }
diff --git a/Common/OpenSim.Framework/Interfaces/IConfig.cs b/Common/OpenSim.Framework/Interfaces/IConfig.cs
deleted file mode 100644
index 7b4c040..0000000
--- a/Common/OpenSim.Framework/Interfaces/IConfig.cs
+++ /dev/null
@@ -1,76 +0,0 @@
1/*
2Copyright (c) OpenSim project, http://osgrid.org/
3
4* Copyright (c) <year>, <copyright holder>
5* All rights reserved.
6*
7* Redistribution and use in source and binary forms, with or without
8* modification, are permitted provided that the following conditions are met:
9* * Redistributions of source code must retain the above copyright
10* notice, this list of conditions and the following disclaimer.
11* * Redistributions in binary form must reproduce the above copyright
12* notice, this list of conditions and the following disclaimer in the
13* documentation and/or other materials provided with the distribution.
14* * Neither the name of the <organization> nor the
15* names of its contributors may be used to endorse or promote products
16* derived from this software without specific prior written permission.
17*
18* THIS SOFTWARE IS PROVIDED BY <copyright holder> ``AS IS'' AND ANY
19* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21* DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
22* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*/
29
30using System;
31using System.Collections.Generic;
32using System.IO;
33using libsecondlife;
34//using OpenSim.world;
35
36namespace OpenSim.Framework.Interfaces
37{
38 /// <summary>
39 /// This class handles connection to the underlying database used for configuration of the region.
40 /// Region content is also stored by this class. The main entry point is InitConfig() which attempts to locate
41 /// opensim.yap in the current working directory. If opensim.yap can not be found, default settings are loaded from
42 /// what is hardcoded here and then saved into opensim.yap for future startups.
43 /// </summary>
44
45
46 public abstract class SimConfig
47 {
48 public string RegionName;
49
50 public uint RegionLocX;
51 public uint RegionLocY;
52 public ulong RegionHandle;
53
54 public int IPListenPort;
55 public string IPListenAddr;
56
57 public string AssetURL;
58 public string AssetSendKey;
59
60 public string GridURL;
61 public string GridSendKey;
62 public string GridRecvKey;
63 public string UserURL;
64 public string UserSendKey;
65 public string UserRecvKey;
66
67 public abstract void InitConfig(bool sandboxMode);
68 public abstract void LoadFromGrid();
69
70 }
71
72 public interface ISimConfig
73 {
74 SimConfig GetConfigObject();
75 }
76}
diff --git a/Common/OpenSim.Framework/Interfaces/IWorld.cs b/Common/OpenSim.Framework/Interfaces/IWorld.cs
new file mode 100644
index 0000000..433e540
--- /dev/null
+++ b/Common/OpenSim.Framework/Interfaces/IWorld.cs
@@ -0,0 +1,15 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using libsecondlife;
5using OpenSim.Framework.Types;
6
7namespace OpenSim.Framework.Interfaces
8{
9 public interface IWorld
10 {
11 bool AddNewAvatar(IClientAPI remoteClient, bool childAgent);
12 bool RemoveAvatar(LLUUID agentID);
13 RegionInfo GetRegionInfo();
14 }
15}
diff --git a/Common/OpenSim.Framework/Interfaces/Remoting/IGridServerHost.cs b/Common/OpenSim.Framework/Interfaces/Remoting/IGridServerHost.cs
new file mode 100644
index 0000000..1569cb2
--- /dev/null
+++ b/Common/OpenSim.Framework/Interfaces/Remoting/IGridServerHost.cs
@@ -0,0 +1,12 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework.Interfaces
6{
7 public interface IGridServerHost
8 {
9 void ConnectSim(string name);
10 string RequestSimURL(uint regionHandle);
11 }
12}
diff --git a/Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerClient.cs b/Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerClient.cs
new file mode 100644
index 0000000..b58bcba
--- /dev/null
+++ b/Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerClient.cs
@@ -0,0 +1,10 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework.Interfaces
6{
7 public interface IProxyServerClient
8 {
9 }
10}
diff --git a/Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerHost.cs b/Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerHost.cs
new file mode 100644
index 0000000..381d53b
--- /dev/null
+++ b/Common/OpenSim.Framework/Interfaces/Remoting/IProxyServerHost.cs
@@ -0,0 +1,10 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework.Interfaces
6{
7 public interface IProxyServerHost
8 {
9 }
10}
diff --git a/Common/OpenSim.Framework/Interfaces/Remoting/IRegionGridClient.cs b/Common/OpenSim.Framework/Interfaces/Remoting/IRegionGridClient.cs
new file mode 100644
index 0000000..7f8ecaf
--- /dev/null
+++ b/Common/OpenSim.Framework/Interfaces/Remoting/IRegionGridClient.cs
@@ -0,0 +1,11 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework.Interfaces
6{
7 public interface IRegionGridClient
8 {
9 bool ExpectUser(string toRegionID, string name);
10 }
11}
diff --git a/Common/OpenSim.Framework/Interfaces/Remoting/IRegionSimHost.cs b/Common/OpenSim.Framework/Interfaces/Remoting/IRegionSimHost.cs
new file mode 100644
index 0000000..c22fe29
--- /dev/null
+++ b/Common/OpenSim.Framework/Interfaces/Remoting/IRegionSimHost.cs
@@ -0,0 +1,12 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework.Interfaces
6{
7 public interface IRegionSimHost
8 {
9 bool ExpectUser(string name);
10 bool AgentCrossing(string name);
11 }
12}
diff --git a/Common/OpenSim.Framework/Interfaces/Remoting/RegionGridClientBase.cs b/Common/OpenSim.Framework/Interfaces/Remoting/RegionGridClientBase.cs
new file mode 100644
index 0000000..28b3128
--- /dev/null
+++ b/Common/OpenSim.Framework/Interfaces/Remoting/RegionGridClientBase.cs
@@ -0,0 +1,11 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework.Interfaces
6{
7 public abstract class RegionGridClientBase :IRegionGridClient
8 {
9 public abstract bool ExpectUser(string toRegionID, string name);
10 }
11}
diff --git a/Common/OpenSim.Framework/Interfaces/IScriptAPI.cs b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptAPI.cs
index 3ad0f06..3ad0f06 100644
--- a/Common/OpenSim.Framework/Interfaces/IScriptAPI.cs
+++ b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptAPI.cs
diff --git a/Common/OpenSim.Framework/Interfaces/IScriptEngine.cs b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptEngine.cs
index ed8974c..ed8974c 100644
--- a/Common/OpenSim.Framework/Interfaces/IScriptEngine.cs
+++ b/Common/OpenSim.Framework/Interfaces/Scripting/IScriptEngine.cs