diff options
author | MW | 2007-05-26 14:55:17 +0000 |
---|---|---|
committer | MW | 2007-05-26 14:55:17 +0000 |
commit | 06387d0344b8fa84b790a9dd910fda8a0a1128bb (patch) | |
tree | faf19abd4c940e6c6fddf805beaee47b9b175e32 /OpenSim/OpenSim.World | |
parent | Die WebFrontEnd, Die Grid class! (diff) | |
download | opensim-SC-06387d0344b8fa84b790a9dd910fda8a0a1128bb.zip opensim-SC-06387d0344b8fa84b790a9dd910fda8a0a1128bb.tar.gz opensim-SC-06387d0344b8fa84b790a9dd910fda8a0a1128bb.tar.bz2 opensim-SC-06387d0344b8fa84b790a9dd910fda8a0a1128bb.tar.xz |
Goodbye World
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.World/Avatar.Client.cs (renamed from OpenSim/OpenSim.RegionServer/world/Avatar.Client.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/Avatar.Update.cs (renamed from OpenSim/OpenSim.RegionServer/world/Avatar.Update.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/Avatar.cs (renamed from OpenSim/OpenSim.RegionServer/world/Avatar.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/AvatarAnimations.cs (renamed from OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/Entity.cs (renamed from OpenSim/OpenSim.RegionServer/world/Entity.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/OpenSim.World.csproj | 195 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/OpenSim.World.csproj.user | 12 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/Primitive.cs (renamed from OpenSim/OpenSim.RegionServer/world/Primitive.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/Primitive2.cs (renamed from OpenSim/OpenSim.RegionServer/world/Primitive2.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/SceneObject.cs (renamed from OpenSim/OpenSim.RegionServer/world/SceneObject.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/World.PacketHandlers.cs (renamed from OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/World.Scripting.cs (renamed from OpenSim/OpenSim.RegionServer/world/World.Scripting.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/World.cs (renamed from OpenSim/OpenSim.RegionServer/world/World.cs) | 83 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/WorldBase.cs (renamed from OpenSim/OpenSim.RegionServer/world/WorldBase.cs) | 2 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/scripting/IScriptContext.cs (renamed from OpenSim/OpenSim.RegionServer/world/scripting/IScriptContext.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/scripting/IScriptEntity.cs (renamed from OpenSim/OpenSim.RegionServer/world/scripting/IScriptEntity.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/scripting/IScriptHandler.cs (renamed from OpenSim/OpenSim.RegionServer/world/scripting/IScriptHandler.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/scripting/Script.cs (renamed from OpenSim/OpenSim.RegionServer/world/scripting/Script.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/scripting/ScriptFactory.cs (renamed from OpenSim/OpenSim.RegionServer/world/scripting/ScriptFactory.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/scripting/Scripts/FollowRandomAvatar.cs (renamed from OpenSim/OpenSim.RegionServer/world/scripting/Scripts/FollowRandomAvatar.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/types/Mesh.cs (renamed from OpenSim/OpenSim.RegionServer/types/Mesh.cs) | 0 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/types/Triangle.cs (renamed from OpenSim/OpenSim.RegionServer/types/Triangle.cs) | 0 |
22 files changed, 210 insertions, 82 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/Avatar.Client.cs b/OpenSim/OpenSim.World/Avatar.Client.cs index 7656a89..7656a89 100644 --- a/OpenSim/OpenSim.RegionServer/world/Avatar.Client.cs +++ b/OpenSim/OpenSim.World/Avatar.Client.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/Avatar.Update.cs b/OpenSim/OpenSim.World/Avatar.Update.cs index 33132cf..33132cf 100644 --- a/OpenSim/OpenSim.RegionServer/world/Avatar.Update.cs +++ b/OpenSim/OpenSim.World/Avatar.Update.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/Avatar.cs b/OpenSim/OpenSim.World/Avatar.cs index cca266b..cca266b 100644 --- a/OpenSim/OpenSim.RegionServer/world/Avatar.cs +++ b/OpenSim/OpenSim.World/Avatar.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs b/OpenSim/OpenSim.World/AvatarAnimations.cs index b554af8..b554af8 100644 --- a/OpenSim/OpenSim.RegionServer/world/AvatarAnimations.cs +++ b/OpenSim/OpenSim.World/AvatarAnimations.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/Entity.cs b/OpenSim/OpenSim.World/Entity.cs index 96e039a..96e039a 100644 --- a/OpenSim/OpenSim.RegionServer/world/Entity.cs +++ b/OpenSim/OpenSim.World/Entity.cs | |||
diff --git a/OpenSim/OpenSim.World/OpenSim.World.csproj b/OpenSim/OpenSim.World/OpenSim.World.csproj new file mode 100644 index 0000000..471f148 --- /dev/null +++ b/OpenSim/OpenSim.World/OpenSim.World.csproj | |||
@@ -0,0 +1,195 @@ | |||
1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
2 | <PropertyGroup> | ||
3 | <ProjectType>Local</ProjectType> | ||
4 | <ProductVersion>8.0.50727</ProductVersion> | ||
5 | <SchemaVersion>2.0</SchemaVersion> | ||
6 | <ProjectGuid>{642A14A8-0000-0000-0000-000000000000}</ProjectGuid> | ||
7 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
8 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
9 | <ApplicationIcon></ApplicationIcon> | ||
10 | <AssemblyKeyContainerName> | ||
11 | </AssemblyKeyContainerName> | ||
12 | <AssemblyName>OpenSim.World</AssemblyName> | ||
13 | <DefaultClientScript>JScript</DefaultClientScript> | ||
14 | <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> | ||
15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | ||
16 | <DelaySign>false</DelaySign> | ||
17 | <OutputType>Library</OutputType> | ||
18 | <AppDesignerFolder></AppDesignerFolder> | ||
19 | <RootNamespace>OpenSim.World</RootNamespace> | ||
20 | <StartupObject></StartupObject> | ||
21 | <FileUpgradeFlags> | ||
22 | </FileUpgradeFlags> | ||
23 | </PropertyGroup> | ||
24 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
25 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | ||
26 | <BaseAddress>285212672</BaseAddress> | ||
27 | <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> | ||
28 | <ConfigurationOverrideFile> | ||
29 | </ConfigurationOverrideFile> | ||
30 | <DefineConstants>TRACE;DEBUG</DefineConstants> | ||
31 | <DocumentationFile></DocumentationFile> | ||
32 | <DebugSymbols>True</DebugSymbols> | ||
33 | <FileAlignment>4096</FileAlignment> | ||
34 | <Optimize>False</Optimize> | ||
35 | <OutputPath>..\..\bin\</OutputPath> | ||
36 | <RegisterForComInterop>False</RegisterForComInterop> | ||
37 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | ||
38 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | ||
39 | <WarningLevel>4</WarningLevel> | ||
40 | <NoWarn></NoWarn> | ||
41 | </PropertyGroup> | ||
42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
43 | <AllowUnsafeBlocks>False</AllowUnsafeBlocks> | ||
44 | <BaseAddress>285212672</BaseAddress> | ||
45 | <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> | ||
46 | <ConfigurationOverrideFile> | ||
47 | </ConfigurationOverrideFile> | ||
48 | <DefineConstants>TRACE</DefineConstants> | ||
49 | <DocumentationFile></DocumentationFile> | ||
50 | <DebugSymbols>False</DebugSymbols> | ||
51 | <FileAlignment>4096</FileAlignment> | ||
52 | <Optimize>True</Optimize> | ||
53 | <OutputPath>..\..\bin\</OutputPath> | ||
54 | <RegisterForComInterop>False</RegisterForComInterop> | ||
55 | <RemoveIntegerChecks>False</RemoveIntegerChecks> | ||
56 | <TreatWarningsAsErrors>False</TreatWarningsAsErrors> | ||
57 | <WarningLevel>4</WarningLevel> | ||
58 | <NoWarn></NoWarn> | ||
59 | </PropertyGroup> | ||
60 | <ItemGroup> | ||
61 | <Reference Include="System" > | ||
62 | <HintPath>System.dll</HintPath> | ||
63 | <Private>False</Private> | ||
64 | </Reference> | ||
65 | <Reference Include="System.Xml" > | ||
66 | <HintPath>System.Xml.dll</HintPath> | ||
67 | <Private>False</Private> | ||
68 | </Reference> | ||
69 | <Reference Include="libsecondlife.dll" > | ||
70 | <HintPath>..\..\bin\libsecondlife.dll</HintPath> | ||
71 | <Private>False</Private> | ||
72 | </Reference> | ||
73 | <Reference Include="Axiom.MathLib.dll" > | ||
74 | <HintPath>..\..\bin\Axiom.MathLib.dll</HintPath> | ||
75 | <Private>False</Private> | ||
76 | </Reference> | ||
77 | <Reference Include="Db4objects.Db4o.dll" > | ||
78 | <HintPath>..\..\bin\Db4objects.Db4o.dll</HintPath> | ||
79 | <Private>False</Private> | ||
80 | </Reference> | ||
81 | </ItemGroup> | ||
82 | <ItemGroup> | ||
83 | <ProjectReference Include="..\OpenSim.Terrain.BasicTerrain\OpenSim.Terrain.BasicTerrain.csproj"> | ||
84 | <Name>OpenSim.Terrain.BasicTerrain</Name> | ||
85 | <Project>{2270B8FE-0000-0000-0000-000000000000}</Project> | ||
86 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
87 | <Private>False</Private> | ||
88 | </ProjectReference> | ||
89 | <ProjectReference Include="..\..\Common\OpenSim.Framework\OpenSim.Framework.csproj"> | ||
90 | <Name>OpenSim.Framework</Name> | ||
91 | <Project>{8ACA2445-0000-0000-0000-000000000000}</Project> | ||
92 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
93 | <Private>False</Private> | ||
94 | </ProjectReference> | ||
95 | <ProjectReference Include="..\..\Common\OpenSim.Framework.Console\OpenSim.Framework.Console.csproj"> | ||
96 | <Name>OpenSim.Framework.Console</Name> | ||
97 | <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> | ||
98 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
99 | <Private>False</Private> | ||
100 | </ProjectReference> | ||
101 | <ProjectReference Include="..\..\Common\OpenSim.GenericConfig\Xml\OpenSim.GenericConfig.Xml.csproj"> | ||
102 | <Name>OpenSim.GenericConfig.Xml</Name> | ||
103 | <Project>{E88EF749-0000-0000-0000-000000000000}</Project> | ||
104 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
105 | <Private>False</Private> | ||
106 | </ProjectReference> | ||
107 | <ProjectReference Include="..\OpenSim.Physics\Manager\OpenSim.Physics.Manager.csproj"> | ||
108 | <Name>OpenSim.Physics.Manager</Name> | ||
109 | <Project>{8BE16150-0000-0000-0000-000000000000}</Project> | ||
110 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
111 | <Private>False</Private> | ||
112 | </ProjectReference> | ||
113 | <ProjectReference Include="..\..\Common\OpenSim.Servers\OpenSim.Servers.csproj"> | ||
114 | <Name>OpenSim.Servers</Name> | ||
115 | <Project>{8BB20F0A-0000-0000-0000-000000000000}</Project> | ||
116 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
117 | <Private>False</Private> | ||
118 | </ProjectReference> | ||
119 | <ProjectReference Include="..\..\Common\XmlRpcCS\XMLRPC.csproj"> | ||
120 | <Name>XMLRPC</Name> | ||
121 | <Project>{8E81D43C-0000-0000-0000-000000000000}</Project> | ||
122 | <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> | ||
123 | <Private>False</Private> | ||
124 | </ProjectReference> | ||
125 | </ItemGroup> | ||
126 | <ItemGroup> | ||
127 | <Compile Include="Avatar.Client.cs"> | ||
128 | <SubType>Code</SubType> | ||
129 | </Compile> | ||
130 | <Compile Include="Avatar.cs"> | ||
131 | <SubType>Code</SubType> | ||
132 | </Compile> | ||
133 | <Compile Include="Avatar.Update.cs"> | ||
134 | <SubType>Code</SubType> | ||
135 | </Compile> | ||
136 | <Compile Include="AvatarAnimations.cs"> | ||
137 | <SubType>Code</SubType> | ||
138 | </Compile> | ||
139 | <Compile Include="Entity.cs"> | ||
140 | <SubType>Code</SubType> | ||
141 | </Compile> | ||
142 | <Compile Include="Primitive.cs"> | ||
143 | <SubType>Code</SubType> | ||
144 | </Compile> | ||
145 | <Compile Include="Primitive2.cs"> | ||
146 | <SubType>Code</SubType> | ||
147 | </Compile> | ||
148 | <Compile Include="SceneObject.cs"> | ||
149 | <SubType>Code</SubType> | ||
150 | </Compile> | ||
151 | <Compile Include="World.cs"> | ||
152 | <SubType>Code</SubType> | ||
153 | </Compile> | ||
154 | <Compile Include="World.PacketHandlers.cs"> | ||
155 | <SubType>Code</SubType> | ||
156 | </Compile> | ||
157 | <Compile Include="World.Scripting.cs"> | ||
158 | <SubType>Code</SubType> | ||
159 | </Compile> | ||
160 | <Compile Include="WorldBase.cs"> | ||
161 | <SubType>Code</SubType> | ||
162 | </Compile> | ||
163 | <Compile Include="scripting\IScriptContext.cs"> | ||
164 | <SubType>Code</SubType> | ||
165 | </Compile> | ||
166 | <Compile Include="scripting\IScriptEntity.cs"> | ||
167 | <SubType>Code</SubType> | ||
168 | </Compile> | ||
169 | <Compile Include="scripting\IScriptHandler.cs"> | ||
170 | <SubType>Code</SubType> | ||
171 | </Compile> | ||
172 | <Compile Include="scripting\Script.cs"> | ||
173 | <SubType>Code</SubType> | ||
174 | </Compile> | ||
175 | <Compile Include="scripting\ScriptFactory.cs"> | ||
176 | <SubType>Code</SubType> | ||
177 | </Compile> | ||
178 | <Compile Include="scripting\Scripts\FollowRandomAvatar.cs"> | ||
179 | <SubType>Code</SubType> | ||
180 | </Compile> | ||
181 | <Compile Include="types\Mesh.cs"> | ||
182 | <SubType>Code</SubType> | ||
183 | </Compile> | ||
184 | <Compile Include="types\Triangle.cs"> | ||
185 | <SubType>Code</SubType> | ||
186 | </Compile> | ||
187 | </ItemGroup> | ||
188 | <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> | ||
189 | <PropertyGroup> | ||
190 | <PreBuildEvent> | ||
191 | </PreBuildEvent> | ||
192 | <PostBuildEvent> | ||
193 | </PostBuildEvent> | ||
194 | </PropertyGroup> | ||
195 | </Project> | ||
diff --git a/OpenSim/OpenSim.World/OpenSim.World.csproj.user b/OpenSim/OpenSim.World/OpenSim.World.csproj.user new file mode 100644 index 0000000..9bfaf67 --- /dev/null +++ b/OpenSim/OpenSim.World/OpenSim.World.csproj.user | |||
@@ -0,0 +1,12 @@ | |||
1 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
2 | <PropertyGroup> | ||
3 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
4 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
5 | <ReferencePath>C:\New Folder\second-life-viewer\opensim-dailys2\opensim26-05\branches\Sugilite\bin\</ReferencePath> | ||
6 | <LastOpenVersion>8.0.50727</LastOpenVersion> | ||
7 | <ProjectView>ProjectFiles</ProjectView> | ||
8 | <ProjectTrust>0</ProjectTrust> | ||
9 | </PropertyGroup> | ||
10 | <PropertyGroup Condition = " '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " /> | ||
11 | <PropertyGroup Condition = " '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " /> | ||
12 | </Project> | ||
diff --git a/OpenSim/OpenSim.RegionServer/world/Primitive.cs b/OpenSim/OpenSim.World/Primitive.cs index 433ea9e..433ea9e 100644 --- a/OpenSim/OpenSim.RegionServer/world/Primitive.cs +++ b/OpenSim/OpenSim.World/Primitive.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/Primitive2.cs b/OpenSim/OpenSim.World/Primitive2.cs index 6d071d4..6d071d4 100644 --- a/OpenSim/OpenSim.RegionServer/world/Primitive2.cs +++ b/OpenSim/OpenSim.World/Primitive2.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/SceneObject.cs b/OpenSim/OpenSim.World/SceneObject.cs index a846fb5..a846fb5 100644 --- a/OpenSim/OpenSim.RegionServer/world/SceneObject.cs +++ b/OpenSim/OpenSim.World/SceneObject.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs b/OpenSim/OpenSim.World/World.PacketHandlers.cs index ee5a23a..ee5a23a 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.PacketHandlers.cs +++ b/OpenSim/OpenSim.World/World.PacketHandlers.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/World.Scripting.cs b/OpenSim/OpenSim.World/World.Scripting.cs index 44ef05a..44ef05a 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.Scripting.cs +++ b/OpenSim/OpenSim.World/World.Scripting.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/World.cs b/OpenSim/OpenSim.World/World.cs index ec9bbc9..d840d10 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.cs +++ b/OpenSim/OpenSim.World/World.cs | |||
@@ -57,7 +57,7 @@ namespace OpenSim.world | |||
57 | /// <param name="clientThreads">Dictionary to contain client threads</param> | 57 | /// <param name="clientThreads">Dictionary to contain client threads</param> |
58 | /// <param name="regionHandle">Region Handle for this region</param> | 58 | /// <param name="regionHandle">Region Handle for this region</param> |
59 | /// <param name="regionName">Region Name for this region</param> | 59 | /// <param name="regionName">Region Name for this region</param> |
60 | public World(Dictionary<uint, ClientView> clientThreads, RegionInfo regInfo, ulong regionHandle, string regionName) | 60 | public World(Dictionary<uint, IClientAPI> clientThreads, RegionInfo regInfo, ulong regionHandle, string regionName) |
61 | { | 61 | { |
62 | try | 62 | try |
63 | { | 63 | { |
@@ -531,92 +531,13 @@ namespace OpenSim.world | |||
531 | 531 | ||
532 | public override Avatar AddViewerAgent(ClientView agentClient) | 532 | public override Avatar AddViewerAgent(ClientView agentClient) |
533 | { | 533 | { |
534 | //register for events | ||
535 | agentClient.OnChatFromViewer += new ChatFromViewer(this.SimChat); | ||
536 | agentClient.OnRezObject += new RezObject(this.RezObject); | ||
537 | agentClient.OnModifyTerrain += new ModifyTerrain(this.ModifyTerrain); | ||
538 | agentClient.OnRegionHandShakeReply += new ClientView.GenericCall(this.SendLayerData); | ||
539 | agentClient.OnRequestWearables += new ClientView.GenericCall(this.GetInitialPrims); | ||
540 | agentClient.OnRequestAvatarsData += new ClientView.GenericCall(this.SendAvatarsToClient); | ||
541 | agentClient.OnLinkObjects += new LinkObjects(this.LinkObjects); | ||
542 | agentClient.OnAddPrim += new ClientView.GenericCall4(this.AddNewPrim); | ||
543 | agentClient.OnUpdatePrimShape += new ClientView.UpdateShape(this.UpdatePrimShape); | ||
544 | agentClient.OnObjectSelect += new ClientView.ObjectSelect(this.SelectPrim); | ||
545 | agentClient.OnUpdatePrimFlags += new ClientView.UpdatePrimFlags(this.UpdatePrimFlags); | ||
546 | agentClient.OnUpdatePrimTexture += new ClientView.UpdatePrimTexture(this.UpdatePrimTexture); | ||
547 | agentClient.OnUpdatePrimPosition += new ClientView.UpdatePrimVector(this.UpdatePrimPosition); | ||
548 | agentClient.OnUpdatePrimRotation += new ClientView.UpdatePrimRotation(this.UpdatePrimRotation); | ||
549 | agentClient.OnUpdatePrimScale += new ClientView.UpdatePrimVector(this.UpdatePrimScale); | ||
550 | agentClient.OnDeRezObject += new ClientView.GenericCall4(this.DeRezObject); | ||
551 | |||
552 | Avatar newAvatar = null; | 534 | Avatar newAvatar = null; |
553 | try | ||
554 | { | ||
555 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs:AddViewerAgent() - Creating new avatar for remote viewer agent"); | ||
556 | newAvatar = new Avatar(agentClient, this, m_regionName, m_clientThreads, m_regionHandle, true, 20); | ||
557 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs:AddViewerAgent() - Adding new avatar to world"); | ||
558 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs:AddViewerAgent() - Starting RegionHandshake "); | ||
559 | newAvatar.SendRegionHandshake(this); | ||
560 | //if (!agentClient.m_child) | ||
561 | //{ | ||
562 | |||
563 | PhysicsVector pVec = new PhysicsVector(newAvatar.Pos.X, newAvatar.Pos.Y, newAvatar.Pos.Z); | ||
564 | lock (this.LockPhysicsEngine) | ||
565 | { | ||
566 | newAvatar.PhysActor = this.phyScene.AddAvatar(pVec); | ||
567 | } | ||
568 | // } | ||
569 | lock (Entities) | ||
570 | { | ||
571 | if (!Entities.ContainsKey(agentClient.AgentID)) | ||
572 | { | ||
573 | this.Entities.Add(agentClient.AgentID, newAvatar); | ||
574 | } | ||
575 | else | ||
576 | { | ||
577 | Entities[agentClient.AgentID] = newAvatar; | ||
578 | } | ||
579 | } | ||
580 | lock (Avatars) | ||
581 | { | ||
582 | if (Avatars.ContainsKey(agentClient.AgentID)) | ||
583 | { | ||
584 | Avatars[agentClient.AgentID] = newAvatar; | ||
585 | } | ||
586 | else | ||
587 | { | ||
588 | this.Avatars.Add(agentClient.AgentID, newAvatar); | ||
589 | } | ||
590 | } | ||
591 | } | ||
592 | catch (Exception e) | ||
593 | { | ||
594 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: AddViewerAgent() - Failed with exception " + e.ToString()); | ||
595 | } | ||
596 | return newAvatar; | 535 | return newAvatar; |
597 | } | 536 | } |
598 | 537 | ||
599 | public override void RemoveViewerAgent(ClientView agentClient) | 538 | public override void RemoveViewerAgent(ClientView agentClient) |
600 | { | 539 | { |
601 | try | 540 | |
602 | { | ||
603 | lock (Entities) | ||
604 | { | ||
605 | Entities.Remove(agentClient.AgentID); | ||
606 | } | ||
607 | lock (Avatars) | ||
608 | { | ||
609 | Avatars.Remove(agentClient.AgentID); | ||
610 | } | ||
611 | if (agentClient.ClientAvatar.PhysActor != null) | ||
612 | { | ||
613 | this.phyScene.RemoveAvatar(agentClient.ClientAvatar.PhysActor); | ||
614 | } | ||
615 | } | ||
616 | catch (Exception e) | ||
617 | { | ||
618 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: RemoveViewerAgent() - Failed with exception " + e.ToString()); | ||
619 | } | ||
620 | } | 541 | } |
621 | #endregion | 542 | #endregion |
622 | 543 | ||
diff --git a/OpenSim/OpenSim.RegionServer/world/WorldBase.cs b/OpenSim/OpenSim.World/WorldBase.cs index ea71411..8fe98d3 100644 --- a/OpenSim/OpenSim.RegionServer/world/WorldBase.cs +++ b/OpenSim/OpenSim.World/WorldBase.cs | |||
@@ -20,7 +20,7 @@ namespace OpenSim.world | |||
20 | public class WorldBase | 20 | public class WorldBase |
21 | { | 21 | { |
22 | public Dictionary<libsecondlife.LLUUID, Entity> Entities; | 22 | public Dictionary<libsecondlife.LLUUID, Entity> Entities; |
23 | protected Dictionary<uint, ClientView> m_clientThreads; | 23 | protected Dictionary<uint, IClientAPI> m_clientThreads; |
24 | protected ulong m_regionHandle; | 24 | protected ulong m_regionHandle; |
25 | protected string m_regionName; | 25 | protected string m_regionName; |
26 | protected InventoryCache _inventoryCache; | 26 | protected InventoryCache _inventoryCache; |
diff --git a/OpenSim/OpenSim.RegionServer/world/scripting/IScriptContext.cs b/OpenSim/OpenSim.World/scripting/IScriptContext.cs index 465c23b..465c23b 100644 --- a/OpenSim/OpenSim.RegionServer/world/scripting/IScriptContext.cs +++ b/OpenSim/OpenSim.World/scripting/IScriptContext.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/scripting/IScriptEntity.cs b/OpenSim/OpenSim.World/scripting/IScriptEntity.cs index 2ef16a4..2ef16a4 100644 --- a/OpenSim/OpenSim.RegionServer/world/scripting/IScriptEntity.cs +++ b/OpenSim/OpenSim.World/scripting/IScriptEntity.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/scripting/IScriptHandler.cs b/OpenSim/OpenSim.World/scripting/IScriptHandler.cs index 15efc49..15efc49 100644 --- a/OpenSim/OpenSim.RegionServer/world/scripting/IScriptHandler.cs +++ b/OpenSim/OpenSim.World/scripting/IScriptHandler.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/scripting/Script.cs b/OpenSim/OpenSim.World/scripting/Script.cs index 48c18ff..48c18ff 100644 --- a/OpenSim/OpenSim.RegionServer/world/scripting/Script.cs +++ b/OpenSim/OpenSim.World/scripting/Script.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/scripting/ScriptFactory.cs b/OpenSim/OpenSim.World/scripting/ScriptFactory.cs index 4c6d373..4c6d373 100644 --- a/OpenSim/OpenSim.RegionServer/world/scripting/ScriptFactory.cs +++ b/OpenSim/OpenSim.World/scripting/ScriptFactory.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/world/scripting/Scripts/FollowRandomAvatar.cs b/OpenSim/OpenSim.World/scripting/Scripts/FollowRandomAvatar.cs index 6a689ab..6a689ab 100644 --- a/OpenSim/OpenSim.RegionServer/world/scripting/Scripts/FollowRandomAvatar.cs +++ b/OpenSim/OpenSim.World/scripting/Scripts/FollowRandomAvatar.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/types/Mesh.cs b/OpenSim/OpenSim.World/types/Mesh.cs index 3e00c91..3e00c91 100644 --- a/OpenSim/OpenSim.RegionServer/types/Mesh.cs +++ b/OpenSim/OpenSim.World/types/Mesh.cs | |||
diff --git a/OpenSim/OpenSim.RegionServer/types/Triangle.cs b/OpenSim/OpenSim.World/types/Triangle.cs index 8dfea6e..8dfea6e 100644 --- a/OpenSim/OpenSim.RegionServer/types/Triangle.cs +++ b/OpenSim/OpenSim.World/types/Triangle.cs | |||