aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
authorMW2007-07-01 18:33:44 +0000
committerMW2007-07-01 18:33:44 +0000
commit54ef77f0fda5fabc6f4677e145fafb74d225a77e (patch)
treec07cbfbe487e2578514de7f1030b0be475ed1c9f /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
parentStarted change to having SceneObject and then that having child Primitives wh... (diff)
downloadopensim-SC-54ef77f0fda5fabc6f4677e145fafb74d225a77e.zip
opensim-SC-54ef77f0fda5fabc6f4677e145fafb74d225a77e.tar.gz
opensim-SC-54ef77f0fda5fabc6f4677e145fafb74d225a77e.tar.bz2
opensim-SC-54ef77f0fda5fabc6f4677e145fafb74d225a77e.tar.xz
Can change the name and description of a prim.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs45
1 files changed, 44 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index f3d461a..f55c118 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -214,7 +214,6 @@ namespace OpenSim.Region.Environment.Scenes
214 /// <param name="remoteClient"></param> 214 /// <param name="remoteClient"></param>
215 public void SelectPrim(uint primLocalID, IClientAPI remoteClient) 215 public void SelectPrim(uint primLocalID, IClientAPI remoteClient)
216 { 216 {
217 Console.WriteLine("prim selected :" + primLocalID);
218 foreach (EntityBase ent in Entities.Values) 217 foreach (EntityBase ent in Entities.Values)
219 { 218 {
220 if (ent is SceneObject) 219 if (ent is SceneObject)
@@ -228,6 +227,50 @@ namespace OpenSim.Region.Environment.Scenes
228 } 227 }
229 } 228 }
230 229
230 /// <summary>
231 ///
232 /// </summary>
233 /// <param name="primLocalID"></param>
234 /// <param name="description"></param>
235 public void PrimDescription(uint primLocalID, string description)
236 {
237 Primitive prim = null;
238 foreach (EntityBase ent in Entities.Values)
239 {
240 if (ent is SceneObject)
241 {
242 prim = ((SceneObject)ent).HasChildPrim(primLocalID);
243 if (prim != null)
244 {
245 prim.Description = description;
246 break;
247 }
248 }
249 }
250 }
251
252 /// <summary>
253 ///
254 /// </summary>
255 /// <param name="primLocalID"></param>
256 /// <param name="description"></param>
257 public void PrimName(uint primLocalID, string name)
258 {
259 Primitive prim = null;
260 foreach (EntityBase ent in Entities.Values)
261 {
262 if (ent is SceneObject)
263 {
264 prim = ((SceneObject)ent).HasChildPrim(primLocalID);
265 if (prim != null)
266 {
267 prim.Name = name;
268 break;
269 }
270 }
271 }
272 }
273
231 public void MoveObject(LLUUID objectID, LLVector3 offset, LLVector3 pos, IClientAPI remoteClient) 274 public void MoveObject(LLUUID objectID, LLVector3 offset, LLVector3 pos, IClientAPI remoteClient)
232 { 275 {
233 if (this.Entities.ContainsKey(objectID)) 276 if (this.Entities.ContainsKey(objectID))