aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs
diff options
context:
space:
mode:
authorJeff Ames2009-07-01 23:37:09 +0000
committerJeff Ames2009-07-01 23:37:09 +0000
commit1d01d6d919ec55e59d5c9b20a978aa6b802bd45d (patch)
tree8a76a2c91c3c6ea1b34d5564cb6e8bc5efed0883 /OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs
parentAdd copyright headers. (diff)
downloadopensim-SC-1d01d6d919ec55e59d5c9b20a978aa6b802bd45d.zip
opensim-SC-1d01d6d919ec55e59d5c9b20a978aa6b802bd45d.tar.gz
opensim-SC-1d01d6d919ec55e59d5c9b20a978aa6b802bd45d.tar.bz2
opensim-SC-1d01d6d919ec55e59d5c9b20a978aa6b802bd45d.tar.xz
Formatting cleanup.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs54
1 files changed, 27 insertions, 27 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs
index a71d1e5..8a38f01 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs
@@ -71,33 +71,33 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
71 get { return GetSP().AbsolutePosition; } 71 get { return GetSP().AbsolutePosition; }
72 set { GetSP().TeleportWithMomentum(value); } 72 set { GetSP().TeleportWithMomentum(value); }
73 } 73 }
74 74
75 #region IAvatar implementation 75 #region IAvatar implementation
76 public IAvatarAttachment[] Attachments 76 public IAvatarAttachment[] Attachments
77 { 77 {
78 get { 78 get {
79 List<IAvatarAttachment> attachments = new List<IAvatarAttachment>(); 79 List<IAvatarAttachment> attachments = new List<IAvatarAttachment>();
80 80
81 Hashtable internalAttachments = GetSP().Appearance.GetAttachments(); 81 Hashtable internalAttachments = GetSP().Appearance.GetAttachments();
82 if(internalAttachments != null) 82 if (internalAttachments != null)
83 { 83 {
84 foreach(DictionaryEntry element in internalAttachments) 84 foreach (DictionaryEntry element in internalAttachments)
85 { 85 {
86 Hashtable attachInfo = (Hashtable)element.Value; 86 Hashtable attachInfo = (Hashtable)element.Value;
87 attachments.Add(new SPAvatarAttachment(m_rootScene, this, (int)element.Key, new UUID((string)attachInfo["item"]), new UUID((string)attachInfo["asset"]))); 87 attachments.Add(new SPAvatarAttachment(m_rootScene, this, (int)element.Key, new UUID((string)attachInfo["item"]), new UUID((string)attachInfo["asset"])));
88 } 88 }
89 } 89 }
90 90
91 return attachments.ToArray(); 91 return attachments.ToArray();
92 } 92 }
93 } 93 }
94 94
95 public void LoadUrl(IObject sender, string message, string url) 95 public void LoadUrl(IObject sender, string message, string url)
96 { 96 {
97 IDialogModule dm = m_rootScene.RequestModuleInterface<IDialogModule>(); 97 IDialogModule dm = m_rootScene.RequestModuleInterface<IDialogModule>();
98 if(dm != null) 98 if (dm != null)
99 dm.SendUrlToUser(GetSP().UUID, sender.Name, sender.GlobalID, GetSP().UUID, false, message, url); 99 dm.SendUrlToUser(GetSP().UUID, sender.Name, sender.GlobalID, GetSP().UUID, false, message, url);
100 } 100 }
101 #endregion 101 #endregion
102 } 102 }
103} 103}