From 44e5ff33df48da8ce9c4534d41c3b6c2b8919e13 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 10 Jun 2007 15:49:59 +0000 Subject: Added a Couple of summary comments --- OpenSim/OpenSim.Region/World/Primitive.cs | 90 +++++++++++++++++++++++++++++-- 1 file changed, 87 insertions(+), 3 deletions(-) (limited to 'OpenSim/OpenSim.Region') diff --git a/OpenSim/OpenSim.Region/World/Primitive.cs b/OpenSim/OpenSim.Region/World/Primitive.cs index d540a3b..c800f21 100644 --- a/OpenSim/OpenSim.Region/World/Primitive.cs +++ b/OpenSim/OpenSim.Region/World/Primitive.cs @@ -45,6 +45,7 @@ namespace OpenSim.Region this._physActor = value; } } + public override LLVector3 Pos { get @@ -58,6 +59,12 @@ namespace OpenSim.Region } #endregion + /// + /// + /// + /// + /// + /// public Primitive(Dictionary clientThreads, ulong regionHandle, World world) { m_clientThreads = clientThreads; @@ -66,6 +73,15 @@ namespace OpenSim.Region inventoryItems = new Dictionary(); } + /// + /// + /// + /// + /// + /// + /// + /// + /// public Primitive(Dictionary clientThreads, ulong regionHandle, World world, LLUUID owner, LLUUID fullID, uint localID) { m_clientThreads = clientThreads; @@ -102,7 +118,10 @@ namespace OpenSim.Region this.updateFlag = 1; } - + /// + /// + /// + /// public byte[] GetByteArray() { byte[] result = null; @@ -139,6 +158,9 @@ namespace OpenSim.Region #region Overridden Methods + /// + /// + /// public override void update() { if (this.updateFlag == 1) @@ -148,6 +170,9 @@ namespace OpenSim.Region } } + /// + /// + /// public override void BackUp() { @@ -157,11 +182,19 @@ namespace OpenSim.Region #region Packet handlers + /// + /// + /// + /// public void UpdatePosition(LLVector3 pos) { } + /// + /// + /// + /// public void UpdateShape(ObjectShapePacket.ObjectDataBlock addPacket) { this.primData.PathBegin = addPacket.PathBegin; @@ -184,22 +217,38 @@ namespace OpenSim.Region this.primData.PathTwistBegin = addPacket.PathTwistBegin; } + /// + /// + /// + /// public void UpdateTexture(byte[] tex) { this.primData.Texture = tex; //this.dirtyFlag = true; } + /// + /// + /// + /// public void UpdateObjectFlags(ObjectFlagUpdatePacket pack) { } + /// + /// + /// + /// public void AssignToParent(Primitive prim) { } + /// + /// + /// + /// public void GetProperites(IClientAPI client) { ObjectPropertiesPacket proper = new ObjectPropertiesPacket(); @@ -286,7 +335,11 @@ namespace OpenSim.Region #region Update viewers Methods - //should change these mehtods, so that outgoing packets are sent through the avatar class + //should change these mehtods, so that outgoing packets are sent through the avatar class? + /// + /// + /// + /// public void SendFullUpdateToClient(IClientAPI remoteClient) { LLVector3 lPos; @@ -303,6 +356,9 @@ namespace OpenSim.Region remoteClient.SendPrimitiveToClient(this.m_regionHandle, 64096, this.localid, this.primData, lPos, new LLUUID("00000000-0000-0000-5005-000000000005")); } + /// + /// + /// public void SendFullUpdateToAllClients() { List avatars = this.m_world.RequestAvatarList(); @@ -312,6 +368,10 @@ namespace OpenSim.Region } } + /// + /// + /// + /// public void SendTerseUpdateToClient(IClientAPI RemoteClient) { LLVector3 lPos; @@ -331,6 +391,9 @@ namespace OpenSim.Region } + /// + /// + /// public void SendTerseUpdateToALLClients() { List avatars = this.m_world.RequestAvatarList(); @@ -344,6 +407,12 @@ namespace OpenSim.Region #region Create Methods + /// + /// + /// + /// + /// + /// public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID ownerID, uint localID) { PrimData PData = new PrimData(); @@ -380,16 +449,31 @@ namespace OpenSim.Region this.updateFlag = 1; } + /// + /// + /// + /// public void CreateFromBytes(byte[] data) { } + /// + /// + /// + /// public void CreateFromPrimData(PrimData primData) { this.CreateFromPrimData(primData, primData.Position, primData.LocalID, false); } - + + /// + /// + /// + /// + /// + /// + /// public void CreateFromPrimData(PrimData primData, LLVector3 posi, uint localID, bool newprim) { -- cgit v1.1