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.RegionServer/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/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 |
18 files changed, 3 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.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 | |||