aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/OpenSimClient.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/OpenSimClient.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs
index 1f9c70c..eb190e9 100644
--- a/src/OpenSimClient.cs
+++ b/src/OpenSimClient.cs
@@ -104,6 +104,25 @@ namespace OpenSim
104 case PacketType.ObjectAdd: 104 case PacketType.ObjectAdd:
105 OpenSim_Main.local_world.AddNewPrim((ObjectAddPacket)Pack, this); 105 OpenSim_Main.local_world.AddNewPrim((ObjectAddPacket)Pack, this);
106 break; 106 break;
107 case PacketType.ObjectLink:
108 ServerConsole.MainConsole.Instance.WriteLine(Pack.ToString());
109 break;
110 case PacketType.ObjectScale:
111 ServerConsole.MainConsole.Instance.WriteLine(Pack.ToString());
112 break;
113 case PacketType.ObjectShape:
114 ObjectShapePacket shape = (ObjectShapePacket)Pack;
115 for(int i =0; i <shape.ObjectData.Length; i++)
116 {
117 foreach (Entity ent in OpenSim_Main.local_world.Entities.Values)
118 {
119 if(ent.localid == shape.ObjectData[i].ObjectLocalID)
120 {
121 ((OpenSim.world.Primitive)ent).UpdateShape(shape.ObjectData[i]);
122 }
123 }
124 }
125 break;
107 case PacketType.MultipleObjectUpdate : 126 case PacketType.MultipleObjectUpdate :
108 MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)Pack; 127 MultipleObjectUpdatePacket multipleupdate = (MultipleObjectUpdatePacket)Pack;
109 128
@@ -135,6 +154,18 @@ namespace OpenSim
135 } 154 }
136 } 155 }
137 } 156 }
157 else if(multipleupdate.ObjectData[i].Type == 13 )//scale
158 {
159
160 libsecondlife.LLVector3 scale = new LLVector3(multipleupdate.ObjectData[ i ].Data, 12 );
161 foreach (Entity ent in OpenSim_Main.local_world.Entities.Values)
162 {
163 if(ent.localid == multipleupdate.ObjectData[ i ].ObjectLocalID)
164 {
165 ((OpenSim.world.Primitive)ent).Scale = scale;
166 }
167 }
168 }
138 } 169 }
139 break; 170 break;
140 case PacketType.TransferRequest: 171 case PacketType.TransferRequest: