From 4224b695acc2e1ad0199dc0ad7f560494182ed54 Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Sat, 9 Jun 2007 21:45:58 +0000
Subject: * LogFile now defaults to "{apptype}.log" * cleaned away suo and user
files. * added handy string chat variety to the API * Moved LockPhysicsEngine
on World to SyncRoot on IWorld * Introduced NextLocalId instead of World
fuggliness. * Transformed GetRegionInfo to Property on IWorld for great
justice * Extracted default wearables (good to have) * Deleted unused
BaseServer * Used IWorld instead of World wherever possible * The client
constructor's not getting unused port any longer. * Extracted ClientView
factoring so PacketServer can be tweaked. * Added SendLayerData to World *
Made WorldBase abstract and cleaned it up a bit * added
OpenGrid.Framework.Communications.dll.build and OpenSim.World.dll.build to
svn * Added code for two examples (but not in prebuild yet)
---
Common/OpenSim.Framework/Interfaces/IClientAPI.cs | 1 +
Common/OpenSim.Framework/Interfaces/IWorld.cs | 5 +-
Common/OpenSim.Framework/OpenSim.Framework.csproj | 84 +++++++++++-----------
.../OpenSim.Framework.csproj.user | 12 ----
.../OpenSim.Framework/OpenSim.Framework.dll.build | 60 ++++++++--------
Common/OpenSim.Framework/Types/AgentWearable.cs | 15 ++++
6 files changed, 92 insertions(+), 85 deletions(-)
delete mode 100644 Common/OpenSim.Framework/OpenSim.Framework.csproj.user
(limited to 'Common/OpenSim.Framework')
diff --git a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
index d5b2ae4..9d28dab 100644
--- a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
+++ b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
@@ -94,6 +94,7 @@ namespace OpenSim.Framework.Interfaces
void OutPacket(Packet newPack);
void SendWearables(AvatarWearable[] wearables);
void SendRegionHandshake(RegionInfo regionInfo);
+ void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID);
void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID);
void SendLayerData(float[] map);
void MoveAgentIntoRegion(RegionInfo regInfo);
diff --git a/Common/OpenSim.Framework/Interfaces/IWorld.cs b/Common/OpenSim.Framework/Interfaces/IWorld.cs
index ab2d63d..eee30b7 100644
--- a/Common/OpenSim.Framework/Interfaces/IWorld.cs
+++ b/Common/OpenSim.Framework/Interfaces/IWorld.cs
@@ -10,6 +10,9 @@ namespace OpenSim.Framework.Interfaces
{
void AddNewAvatar(IClientAPI remoteClient, LLUUID agentID, bool child);
void RemoveAvatar(LLUUID agentID);
- RegionInfo GetRegionInfo();
+
+ RegionInfo RegionInfo { get; }
+ object SyncRoot { get; }
+ uint NextLocalId { get; }
}
}
diff --git a/Common/OpenSim.Framework/OpenSim.Framework.csproj b/Common/OpenSim.Framework/OpenSim.Framework.csproj
index 7e14e6a..f72c5f5 100644
--- a/Common/OpenSim.Framework/OpenSim.Framework.csproj
+++ b/Common/OpenSim.Framework/OpenSim.Framework.csproj
@@ -90,58 +90,49 @@
-
- Code
-
Code
Code
-
- Code
-
-
+
Code
-
+
Code
Code
-
- Code
-
-
+
Code
-
+
Code
-
+
Code
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
Code
-
+
Code
@@ -150,61 +141,64 @@
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
Code
-
+
+ Code
+
+
Code
@@ -213,19 +207,25 @@
Code
-
+
Code
-
+
Code
-
+
Code
-
+
Code
-
+
+ Code
+
+
+ Code
+
+
Code
diff --git a/Common/OpenSim.Framework/OpenSim.Framework.csproj.user b/Common/OpenSim.Framework/OpenSim.Framework.csproj.user
deleted file mode 100644
index 082d673..0000000
--- a/Common/OpenSim.Framework/OpenSim.Framework.csproj.user
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- Debug
- AnyCPU
- C:\sugilite\bin\
- 8.0.50727
- ProjectFiles
- 0
-
-
-
-
diff --git a/Common/OpenSim.Framework/OpenSim.Framework.dll.build b/Common/OpenSim.Framework/OpenSim.Framework.dll.build
index 2678e54..7ead9a8 100644
--- a/Common/OpenSim.Framework/OpenSim.Framework.dll.build
+++ b/Common/OpenSim.Framework/OpenSim.Framework.dll.build
@@ -11,52 +11,52 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
+
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
-
-
-
-
+
-
+
+
-
-
-
-
+
+
+
+
+
+
diff --git a/Common/OpenSim.Framework/Types/AgentWearable.cs b/Common/OpenSim.Framework/Types/AgentWearable.cs
index b7fbe3c..49c1292 100644
--- a/Common/OpenSim.Framework/Types/AgentWearable.cs
+++ b/Common/OpenSim.Framework/Types/AgentWearable.cs
@@ -14,5 +14,20 @@ namespace OpenSim.Framework.Types
{
}
+
+ public static AvatarWearable[] DefaultWearables
+ {
+ get
+ {
+ AvatarWearable[] defaultWearables = new AvatarWearable[13]; //should be 13 of these
+ for (int i = 0; i < 13; i++)
+ {
+ defaultWearables[i] = new AvatarWearable();
+ }
+ defaultWearables[0].AssetID = new LLUUID("66c41e39-38f9-f75a-024e-585989bfab73");
+ defaultWearables[0].ItemID = LLUUID.Random();
+ return defaultWearables;
+ }
+ }
}
}
--
cgit v1.1