diff options
author | Jeff Ames | 2008-07-06 14:02:22 +0000 |
---|---|---|
committer | Jeff Ames | 2008-07-06 14:02:22 +0000 |
commit | d470d30c09fde202f708a9c8af763f5d16e18bfb (patch) | |
tree | 6a86572d268dda911a5208bf5be1a1f2c19adc3c /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Remove scripts that don't really belong in OpenSim SVN. (diff) | |
download | opensim-SC_OLD-d470d30c09fde202f708a9c8af763f5d16e18bfb.zip opensim-SC_OLD-d470d30c09fde202f708a9c8af763f5d16e18bfb.tar.gz opensim-SC_OLD-d470d30c09fde202f708a9c8af763f5d16e18bfb.tar.bz2 opensim-SC_OLD-d470d30c09fde202f708a9c8af763f5d16e18bfb.tar.xz |
Copyright notices and formatting cleanup.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0e85340..26fe27b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2044,7 +2044,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2044 | { | 2044 | { |
2045 | m_host.AddScriptLPS(1); | 2045 | m_host.AddScriptLPS(1); |
2046 | IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>(); | 2046 | IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>(); |
2047 | if(emailModule == null) | 2047 | if (emailModule == null) |
2048 | return; | 2048 | return; |
2049 | 2049 | ||
2050 | emailModule.SendEmail(m_host.UUID, address, subject, message); | 2050 | emailModule.SendEmail(m_host.UUID, address, subject, message); |
@@ -2054,13 +2054,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2054 | { | 2054 | { |
2055 | m_host.AddScriptLPS(1); | 2055 | m_host.AddScriptLPS(1); |
2056 | IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>(); | 2056 | IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>(); |
2057 | if(emailModule == null) | 2057 | if (emailModule == null) |
2058 | return; | 2058 | return; |
2059 | Email email; | 2059 | Email email; |
2060 | 2060 | ||
2061 | email = emailModule.GetNextEmail(m_host.UUID, address, subject); | 2061 | email = emailModule.GetNextEmail(m_host.UUID, address, subject); |
2062 | 2062 | ||
2063 | if(email == null) | 2063 | if (email == null) |
2064 | return; | 2064 | return; |
2065 | 2065 | ||
2066 | m_ScriptEngine.PostObjectEvent(m_host.LocalId, | 2066 | m_ScriptEngine.PostObjectEvent(m_host.LocalId, |
@@ -3163,7 +3163,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3163 | { | 3163 | { |
3164 | m_host.AddScriptLPS(1); | 3164 | m_host.AddScriptLPS(1); |
3165 | 3165 | ||
3166 | if(add != 0) | 3166 | if (add != 0) |
3167 | m_host.ParentGroup.RootPart.AllowedDrop = true; | 3167 | m_host.ParentGroup.RootPart.AllowedDrop = true; |
3168 | else | 3168 | else |
3169 | m_host.ParentGroup.RootPart.AllowedDrop = false; | 3169 | m_host.ParentGroup.RootPart.AllowedDrop = false; |
@@ -4283,7 +4283,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4283 | { | 4283 | { |
4284 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) | 4284 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) |
4285 | { | 4285 | { |
4286 | if(inv.Value.Name == name) | 4286 | if (inv.Value.Name == name) |
4287 | return inv.Key; | 4287 | return inv.Key; |
4288 | } | 4288 | } |
4289 | return LLUUID.Zero; | 4289 | return LLUUID.Zero; |
@@ -4294,7 +4294,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4294 | m_host.AddScriptLPS(1); | 4294 | m_host.AddScriptLPS(1); |
4295 | 4295 | ||
4296 | LLUUID destID; | 4296 | LLUUID destID; |
4297 | if(!LLUUID.TryParse(destination, out destID)) | 4297 | if (!LLUUID.TryParse(destination, out destID)) |
4298 | return; | 4298 | return; |
4299 | 4299 | ||
4300 | List<LLUUID> itemList = new List<LLUUID>(); | 4300 | List<LLUUID> itemList = new List<LLUUID>(); |
@@ -4302,19 +4302,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4302 | foreach (Object item in inventory.Data) | 4302 | foreach (Object item in inventory.Data) |
4303 | { | 4303 | { |
4304 | LLUUID itemID; | 4304 | LLUUID itemID; |
4305 | if(LLUUID.TryParse(item.ToString(), out itemID)) | 4305 | if (LLUUID.TryParse(item.ToString(), out itemID)) |
4306 | { | 4306 | { |
4307 | itemList.Add(itemID); | 4307 | itemList.Add(itemID); |
4308 | } | 4308 | } |
4309 | else | 4309 | else |
4310 | { | 4310 | { |
4311 | itemID = GetTaskInventoryItem(item.ToString()); | 4311 | itemID = GetTaskInventoryItem(item.ToString()); |
4312 | if(itemID != LLUUID.Zero) | 4312 | if (itemID != LLUUID.Zero) |
4313 | itemList.Add(itemID); | 4313 | itemList.Add(itemID); |
4314 | } | 4314 | } |
4315 | } | 4315 | } |
4316 | 4316 | ||
4317 | if(itemList.Count == 0) | 4317 | if (itemList.Count == 0) |
4318 | return; | 4318 | return; |
4319 | 4319 | ||
4320 | m_ScriptEngine.World.MoveTaskInventoryItems(destID, category, m_host, itemList); | 4320 | m_ScriptEngine.World.MoveTaskInventoryItems(destID, category, m_host, itemList); |
@@ -4985,7 +4985,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4985 | LSL_Types.Vector3 holesize; | 4985 | LSL_Types.Vector3 holesize; |
4986 | LSL_Types.Vector3 profilecut; | 4986 | LSL_Types.Vector3 profilecut; |
4987 | 4987 | ||
4988 | switch(code) | 4988 | switch (code) |
4989 | { | 4989 | { |
4990 | case (int)ScriptBaseClass.PRIM_TYPE_BOX: | 4990 | case (int)ScriptBaseClass.PRIM_TYPE_BOX: |
4991 | if (remain < 6) | 4991 | if (remain < 6) |