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) --- .../OpenGrid.Framework.Communications.csproj | 18 ++--- .../OpenGrid.Framework.Communications.dll.build | 51 +++++++++++++ Common/OpenSim.Framework.Console/ConsoleBase.cs | 6 ++ .../OpenSim.Framework.Console.csproj.user | 12 ---- 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 ++++ .../Xml/OpenSim.GenericConfig.Xml.csproj.user | 12 ---- Common/OpenSim.Servers/BaseServer.cs | 10 --- Common/OpenSim.Servers/OpenSim.Servers.csproj | 13 ++-- Common/OpenSim.Servers/OpenSim.Servers.csproj.user | 12 ---- Common/OpenSim.Servers/OpenSim.Servers.dll.build | 7 +- Common/XmlRpcCS/XMLRPC.csproj | 36 +++++----- Common/XmlRpcCS/XMLRPC.csproj.user | 12 ---- Common/XmlRpcCS/XMLRPC.dll.build | 22 +++--- 18 files changed, 195 insertions(+), 193 deletions(-) create mode 100644 Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build delete mode 100644 Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj.user delete mode 100644 Common/OpenSim.Framework/OpenSim.Framework.csproj.user delete mode 100644 Common/OpenSim.GenericConfig/Xml/OpenSim.GenericConfig.Xml.csproj.user delete mode 100644 Common/OpenSim.Servers/BaseServer.cs delete mode 100644 Common/OpenSim.Servers/OpenSim.Servers.csproj.user delete mode 100644 Common/XmlRpcCS/XMLRPC.csproj.user (limited to 'Common') diff --git a/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj index 689210b..94682be 100644 --- a/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj +++ b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.csproj @@ -83,31 +83,31 @@ Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code diff --git a/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build new file mode 100644 index 0000000..a6616bf --- /dev/null +++ b/Common/OpenGrid.Framework.Communications/OpenGrid.Framework.Communications.dll.build @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Common/OpenSim.Framework.Console/ConsoleBase.cs b/Common/OpenSim.Framework.Console/ConsoleBase.cs index 0377998..80a28e9 100644 --- a/Common/OpenSim.Framework.Console/ConsoleBase.cs +++ b/Common/OpenSim.Framework.Console/ConsoleBase.cs @@ -54,6 +54,12 @@ namespace OpenSim.Framework.Console this.cmdparser = cmdparser; this.m_silent = silent; System.Console.WriteLine("ServerConsole.cs - creating new local console"); + + if( String.IsNullOrEmpty( LogFile ) ) + { + LogFile = componentname + ".log"; + } + System.Console.WriteLine("Logs will be saved to current directory in " + LogFile); Log = File.AppendText(LogFile); Log.WriteLine("========================================================================"); diff --git a/Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj.user b/Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj.user deleted file mode 100644 index 082d673..0000000 --- a/Common/OpenSim.Framework.Console/OpenSim.Framework.Console.csproj.user +++ /dev/null @@ -1,12 +0,0 @@ - - - Debug - AnyCPU - C:\sugilite\bin\ - 8.0.50727 - ProjectFiles - 0 - - - - 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; + } + } } } diff --git a/Common/OpenSim.GenericConfig/Xml/OpenSim.GenericConfig.Xml.csproj.user b/Common/OpenSim.GenericConfig/Xml/OpenSim.GenericConfig.Xml.csproj.user deleted file mode 100644 index 082d673..0000000 --- a/Common/OpenSim.GenericConfig/Xml/OpenSim.GenericConfig.Xml.csproj.user +++ /dev/null @@ -1,12 +0,0 @@ - - - Debug - AnyCPU - C:\sugilite\bin\ - 8.0.50727 - ProjectFiles - 0 - - - - diff --git a/Common/OpenSim.Servers/BaseServer.cs b/Common/OpenSim.Servers/BaseServer.cs deleted file mode 100644 index 0a4c498..0000000 --- a/Common/OpenSim.Servers/BaseServer.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace OpenSim.Servers -{ - public class BaseServer - { - } -} diff --git a/Common/OpenSim.Servers/OpenSim.Servers.csproj b/Common/OpenSim.Servers/OpenSim.Servers.csproj index 6768ce4..0c61f75 100644 --- a/Common/OpenSim.Servers/OpenSim.Servers.csproj +++ b/Common/OpenSim.Servers/OpenSim.Servers.csproj @@ -92,13 +92,10 @@ - - Code - Code - + Code @@ -107,18 +104,18 @@ Code - - Code - Code - + Code Code + + Code + diff --git a/Common/OpenSim.Servers/OpenSim.Servers.csproj.user b/Common/OpenSim.Servers/OpenSim.Servers.csproj.user deleted file mode 100644 index 082d673..0000000 --- a/Common/OpenSim.Servers/OpenSim.Servers.csproj.user +++ /dev/null @@ -1,12 +0,0 @@ - - - Debug - AnyCPU - C:\sugilite\bin\ - 8.0.50727 - ProjectFiles - 0 - - - - diff --git a/Common/OpenSim.Servers/OpenSim.Servers.dll.build b/Common/OpenSim.Servers/OpenSim.Servers.dll.build index a2af584..ec868f1 100644 --- a/Common/OpenSim.Servers/OpenSim.Servers.dll.build +++ b/Common/OpenSim.Servers/OpenSim.Servers.dll.build @@ -11,15 +11,14 @@ - - + - - + + diff --git a/Common/XmlRpcCS/XMLRPC.csproj b/Common/XmlRpcCS/XMLRPC.csproj index 1ab494e..61f8be0 100644 --- a/Common/XmlRpcCS/XMLRPC.csproj +++ b/Common/XmlRpcCS/XMLRPC.csproj @@ -70,58 +70,58 @@ - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code - + Code diff --git a/Common/XmlRpcCS/XMLRPC.csproj.user b/Common/XmlRpcCS/XMLRPC.csproj.user deleted file mode 100644 index 082d673..0000000 --- a/Common/XmlRpcCS/XMLRPC.csproj.user +++ /dev/null @@ -1,12 +0,0 @@ - - - Debug - AnyCPU - C:\sugilite\bin\ - 8.0.50727 - ProjectFiles - 0 - - - - diff --git a/Common/XmlRpcCS/XMLRPC.dll.build b/Common/XmlRpcCS/XMLRPC.dll.build index e7936c3..2eabfcd 100644 --- a/Common/XmlRpcCS/XMLRPC.dll.build +++ b/Common/XmlRpcCS/XMLRPC.dll.build @@ -11,24 +11,24 @@ + + + + + + + - - - - - + + - - + + - - - - -- cgit v1.1