aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ChildAgentDataUpdate.cs
diff options
context:
space:
mode:
authorlbsa712009-02-12 09:53:12 +0000
committerlbsa712009-02-12 09:53:12 +0000
commit801da4346aeb3c08969c4845f5c595135a64470a (patch)
tree2f06e24c72e0d513c8e4c6aa9b75cd2c7b50f393 /OpenSim/Framework/ChildAgentDataUpdate.cs
parentThanks Kitto Flora for a patch that adds automatic min fly height to ODE - Ma... (diff)
downloadopensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.zip
opensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.tar.gz
opensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.tar.bz2
opensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.tar.xz
* optimized usings.
Diffstat (limited to 'OpenSim/Framework/ChildAgentDataUpdate.cs')
-rw-r--r--OpenSim/Framework/ChildAgentDataUpdate.cs18
1 files changed, 7 insertions, 11 deletions
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs
index 34f2866..0e72e47 100644
--- a/OpenSim/Framework/ChildAgentDataUpdate.cs
+++ b/OpenSim/Framework/ChildAgentDataUpdate.cs
@@ -26,14 +26,10 @@
26 */ 26 */
27 27
28using System; 28using System;
29using OpenMetaverse;
30using System.Collections; 29using System.Collections;
31using System.Collections.Generic; 30using System.Collections.Generic;
32 31using OpenMetaverse;
33using OSD = OpenMetaverse.StructuredData.OSD; 32using OpenMetaverse.StructuredData;
34using OSDMap = OpenMetaverse.StructuredData.OSDMap;
35using OSDArray = OpenMetaverse.StructuredData.OSDArray;
36using OSDParser = OpenMetaverse.StructuredData.OSDParser;
37 33
38namespace OpenSim.Framework 34namespace OpenSim.Framework
39{ 35{
@@ -486,7 +482,7 @@ namespace OpenSim.Framework
486 if (args["agent_access"] != null) 482 if (args["agent_access"] != null)
487 Byte.TryParse(args["agent_access"].AsString(), out AgentAccess); 483 Byte.TryParse(args["agent_access"].AsString(), out AgentAccess);
488 484
489 if ((args["agent_textures"] != null) && (args["agent_textures"]).Type == OpenMetaverse.StructuredData.OSDType.Array) 485 if ((args["agent_textures"] != null) && (args["agent_textures"]).Type == OSDType.Array)
490 { 486 {
491 OSDArray textures = (OSDArray)(args["agent_textures"]); 487 OSDArray textures = (OSDArray)(args["agent_textures"]);
492 AgentTextures = new UUID[textures.Count]; 488 AgentTextures = new UUID[textures.Count];
@@ -498,28 +494,28 @@ namespace OpenSim.Framework
498 if (args["active_group_id"] != null) 494 if (args["active_group_id"] != null)
499 ActiveGroupID = args["active_group_id"].AsUUID(); 495 ActiveGroupID = args["active_group_id"].AsUUID();
500 496
501 if ((args["groups"] != null) && (args["groups"]).Type == OpenMetaverse.StructuredData.OSDType.Array) 497 if ((args["groups"] != null) && (args["groups"]).Type == OSDType.Array)
502 { 498 {
503 OSDArray groups = (OSDArray)(args["groups"]); 499 OSDArray groups = (OSDArray)(args["groups"]);
504 Groups = new AgentGroupData[groups.Count]; 500 Groups = new AgentGroupData[groups.Count];
505 int i = 0; 501 int i = 0;
506 foreach (OSD o in groups) 502 foreach (OSD o in groups)
507 { 503 {
508 if (o.Type == OpenMetaverse.StructuredData.OSDType.Map) 504 if (o.Type == OSDType.Map)
509 { 505 {
510 Groups[i++] = new AgentGroupData((OSDMap)o); 506 Groups[i++] = new AgentGroupData((OSDMap)o);
511 } 507 }
512 } 508 }
513 } 509 }
514 510
515 if ((args["animations"] != null) && (args["animations"]).Type == OpenMetaverse.StructuredData.OSDType.Array) 511 if ((args["animations"] != null) && (args["animations"]).Type == OSDType.Array)
516 { 512 {
517 OSDArray anims = (OSDArray)(args["animations"]); 513 OSDArray anims = (OSDArray)(args["animations"]);
518 Anims = new AgentAnimationData[anims.Count]; 514 Anims = new AgentAnimationData[anims.Count];
519 int i = 0; 515 int i = 0;
520 foreach (OSD o in anims) 516 foreach (OSD o in anims)
521 { 517 {
522 if (o.Type == OpenMetaverse.StructuredData.OSDType.Map) 518 if (o.Type == OSDType.Map)
523 { 519 {
524 Anims[i++] = new AgentAnimationData((OSDMap)o); 520 Anims[i++] = new AgentAnimationData((OSDMap)o);
525 } 521 }