From fe46b045f75dec5ecdd0a29273c70df3e6ea540e Mon Sep 17 00:00:00 2001 From: MW Date: Mon, 21 May 2007 16:06:58 +0000 Subject: Start of a redesign of SimClient (now renamed ClientView)/World/Avatar/Prim , switching to a event based system (World/Avatar register as event handlers). It is possible that I've broke something with this commit but it doesn't matter as I'll just hide and no one will find me. --- OpenSim.RegionServer/world/Primitive.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim.RegionServer/world/Primitive.cs') diff --git a/OpenSim.RegionServer/world/Primitive.cs b/OpenSim.RegionServer/world/Primitive.cs index 4f861f7..e048a9e 100644 --- a/OpenSim.RegionServer/world/Primitive.cs +++ b/OpenSim.RegionServer/world/Primitive.cs @@ -22,7 +22,7 @@ namespace OpenSim.world private bool physicsEnabled = false; private bool physicstest = false; private LLVector3 positionLastFrame = new LLVector3(0, 0, 0); - private Dictionary m_clientThreads; + private Dictionary m_clientThreads; private ulong m_regionHandle; private const uint FULL_MASK_PERMISSIONS = 2147483647; @@ -75,7 +75,7 @@ namespace OpenSim.world } } - public Primitive(Dictionary clientThreads, ulong regionHandle, World world) + public Primitive(Dictionary clientThreads, ulong regionHandle, World world) { mesh_cutbegin = 0.0f; mesh_cutend = 1.0f; @@ -104,7 +104,7 @@ namespace OpenSim.world return this.primData.ToBytes(); } - public void GetProperites(SimClient client) + public void GetProperites(ClientView client) { ObjectPropertiesPacket proper = new ObjectPropertiesPacket(); proper.ObjectData = new ObjectPropertiesPacket.ObjectDataBlock[1]; @@ -164,7 +164,7 @@ namespace OpenSim.world } if (this.newPrimFlag) { - foreach (SimClient client in m_clientThreads.Values) + foreach (ClientView client in m_clientThreads.Values) { client.OutPacket(OurPacket); } @@ -177,7 +177,7 @@ namespace OpenSim.world terse.RegionData.TimeDilation = 64096; terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1]; terse.ObjectData[0] = this.CreateImprovedBlock(); - foreach (SimClient client in m_clientThreads.Values) + foreach (ClientView client in m_clientThreads.Values) { client.OutPacket(terse); } @@ -185,7 +185,7 @@ namespace OpenSim.world } else if (this.dirtyFlag) { - foreach (SimClient client in m_clientThreads.Values) + foreach (ClientView client in m_clientThreads.Values) { UpdateClient(client); } @@ -202,7 +202,7 @@ namespace OpenSim.world terse.RegionData.TimeDilation = 64096; terse.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[1]; terse.ObjectData[0] = this.CreateImprovedBlock(); - foreach (SimClient client in m_clientThreads.Values) + foreach (ClientView client in m_clientThreads.Values) { client.OutPacket(terse); } @@ -220,7 +220,7 @@ namespace OpenSim.world } } - public void UpdateClient(SimClient RemoteClient) + public void UpdateClient(ClientView RemoteClient) { LLVector3 lPos; -- cgit v1.1