Copyright notices and formatting cleanup.
parent
34cac351cb
commit
d470d30c09
|
@ -476,7 +476,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
}
|
||||
else
|
||||
{
|
||||
lock(cntable) cntable.Add(cnonce, nck);
|
||||
lock (cntable) cntable.Add(cnonce, nck);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
/// </summary>
|
||||
private void LoadHandlers()
|
||||
{
|
||||
lock(handlers)
|
||||
lock (handlers)
|
||||
{
|
||||
if (!handlersLoaded)
|
||||
{
|
||||
|
|
|
@ -238,7 +238,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
Rest.Log.DebugFormat("{0} Inventory catalog requested for {1} {2}",
|
||||
MsgId, rdata.userProfile.FirstName, rdata.userProfile.SurName);
|
||||
|
||||
lock(rdata)
|
||||
lock (rdata)
|
||||
{
|
||||
if (!rdata.HaveInventory)
|
||||
{
|
||||
|
@ -1869,7 +1869,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
this.folders = folders;
|
||||
this.items = items;
|
||||
this.HaveInventory = true;
|
||||
lock(this)
|
||||
lock (this)
|
||||
{
|
||||
Monitor.Pulse(this);
|
||||
}
|
||||
|
|
|
@ -729,13 +729,13 @@ namespace OpenSim.Data.MySQL
|
|||
|
||||
public RegionSettings LoadRegionSettings(LLUUID regionUUID)
|
||||
{
|
||||
lock(m_dataSet)
|
||||
lock (m_dataSet)
|
||||
{
|
||||
CheckConnection();
|
||||
DataTable regionsettings = m_regionSettingsTable;
|
||||
string searchExp = "regionUUID = '" + regionUUID.ToString() + "'";
|
||||
DataRow[] rawsettings = regionsettings.Select(searchExp);
|
||||
if(rawsettings.Length == 0)
|
||||
if (rawsettings.Length == 0)
|
||||
{
|
||||
RegionSettings rs = new RegionSettings();
|
||||
rs.RegionUUID = regionUUID;
|
||||
|
|
|
@ -1,4 +1,31 @@
|
|||
using System;
|
||||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of the OpenSim Project nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using libsecondlife;
|
||||
|
|
|
@ -285,7 +285,7 @@ namespace OpenSim.Framework
|
|||
{
|
||||
get
|
||||
{
|
||||
if(m_regionSettings == null)
|
||||
if (m_regionSettings == null)
|
||||
{
|
||||
m_regionSettings = new RegionSettings();
|
||||
}
|
||||
|
|
|
@ -135,7 +135,7 @@ namespace OpenSim.Framework
|
|||
|
||||
public bool HandleIncomingConfiguration(string key, object value)
|
||||
{
|
||||
switch(key)
|
||||
switch (key)
|
||||
{
|
||||
case "region_flags":
|
||||
Simulator.RegionFlags flags = (Simulator.RegionFlags)(uint)value;
|
||||
|
@ -171,7 +171,7 @@ namespace OpenSim.Framework
|
|||
break;
|
||||
case "sim_access":
|
||||
int access = (int)value;
|
||||
if(access <= 13)
|
||||
if (access <= 13)
|
||||
m_Maturity = 0;
|
||||
else
|
||||
m_Maturity = 1;
|
||||
|
|
|
@ -116,7 +116,7 @@ namespace OpenSim.Framework.Servers
|
|||
// we are either out of handlers or get back a
|
||||
// Handled or Detached
|
||||
OSHttpHandlerResult rc = OSHttpHandlerResult.Unprocessed;
|
||||
foreach(OSHttpHandler h in handlers)
|
||||
foreach (OSHttpHandler h in handlers)
|
||||
{
|
||||
rc = h.Process(req);
|
||||
|
||||
|
|
|
@ -1,3 +1,30 @@
|
|||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of the OpenSim Project nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
|
|
|
@ -995,7 +995,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
else
|
||||
{
|
||||
CachedUserInfo profile = CommsManager.UserProfileCacheService.GetUserDetails(avatarId);
|
||||
if(profile == null || profile.RootFolder == null)
|
||||
if (profile == null || profile.RootFolder == null)
|
||||
{
|
||||
m_log.ErrorFormat(
|
||||
"[PRIM INVENTORY]: " +
|
||||
|
@ -1040,7 +1040,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
return;
|
||||
}
|
||||
|
||||
if(part.OwnerID != destPart.OwnerID && (part.GetEffectiveObjectFlags() & (uint)LLObject.ObjectFlags.AllowInventoryDrop) == 0)
|
||||
if (part.OwnerID != destPart.OwnerID && (part.GetEffectiveObjectFlags() & (uint)LLObject.ObjectFlags.AllowInventoryDrop) == 0)
|
||||
{
|
||||
// object cannot copy items to an object owned by a different owner
|
||||
// unless llAllowInventoryDrop has been called
|
||||
|
@ -1049,7 +1049,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
|
||||
// must have both move and modify permission to put an item in an object
|
||||
if((part.OwnerMask & ((uint)PermissionMask.Move | (uint)PermissionMask.Modify)) == 0 )
|
||||
if ((part.OwnerMask & ((uint)PermissionMask.Move | (uint)PermissionMask.Modify)) == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -1099,7 +1099,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
ScenePresence avatar;
|
||||
|
||||
if(TryGetAvatar(srcTaskItem.OwnerID, out avatar))
|
||||
if (TryGetAvatar(srcTaskItem.OwnerID, out avatar))
|
||||
{
|
||||
destPart.GetProperties(avatar.ControllingClient);
|
||||
}
|
||||
|
@ -1108,7 +1108,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public void MoveTaskInventoryItems(LLUUID destID, string category, SceneObjectPart host, List<LLUUID> items)
|
||||
{
|
||||
CachedUserInfo profile = CommsManager.UserProfileCacheService.GetUserDetails(destID);
|
||||
if(profile == null || profile.RootFolder == null)
|
||||
if (profile == null || profile.RootFolder == null)
|
||||
{
|
||||
m_log.ErrorFormat(
|
||||
"[PRIM INVENTORY]: " +
|
||||
|
@ -1350,10 +1350,10 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
|
||||
// Must own the object, and have modify rights
|
||||
if(srcPart.OwnerID != destPart.OwnerID)
|
||||
if (srcPart.OwnerID != destPart.OwnerID)
|
||||
return;
|
||||
|
||||
if((destPart.OwnerMask & (uint)PermissionMask.Modify) == 0)
|
||||
if ((destPart.OwnerMask & (uint)PermissionMask.Modify) == 0)
|
||||
return;
|
||||
|
||||
if (destPart.ScriptAccessPin != pin)
|
||||
|
@ -1418,7 +1418,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
ScenePresence avatar;
|
||||
|
||||
if(TryGetAvatar(srcTaskItem.OwnerID, out avatar))
|
||||
if (TryGetAvatar(srcTaskItem.OwnerID, out avatar))
|
||||
{
|
||||
destPart.GetProperties(avatar.ControllingClient);
|
||||
}
|
||||
|
@ -1497,7 +1497,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
m_inventoryTicker.Elapsed += InventoryRunDeleteTimer;
|
||||
}
|
||||
|
||||
lock(m_inventoryDeletes)
|
||||
lock (m_inventoryDeletes)
|
||||
{
|
||||
DeleteToInventoryHolder dtis = new DeleteToInventoryHolder();
|
||||
dtis.DeRezPacket = DeRezPacket;
|
||||
|
@ -2246,7 +2246,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public void GetScriptRunning(IClientAPI controllingClient, LLUUID objectID, LLUUID itemID)
|
||||
{
|
||||
IScriptModule scriptModule = RequestModuleInterface<IScriptModule>();
|
||||
if(scriptModule == null)
|
||||
if (scriptModule == null)
|
||||
return;
|
||||
|
||||
controllingClient.SendScriptRunningReply(objectID, itemID,
|
||||
|
@ -2256,10 +2256,10 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public void SetScriptRunning(IClientAPI controllingClient, LLUUID objectID, LLUUID itemID, bool running)
|
||||
{
|
||||
SceneObjectPart part = GetSceneObjectPart(objectID);
|
||||
if(part == null)
|
||||
if (part == null)
|
||||
return;
|
||||
|
||||
if(running)
|
||||
if (running)
|
||||
EventManager.TriggerStartScript(part.LocalId, itemID);
|
||||
else
|
||||
EventManager.TriggerStopScript(part.LocalId, itemID);
|
||||
|
|
|
@ -292,7 +292,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public void AddInventoryItemExclusive(TaskInventoryItem item)
|
||||
{
|
||||
List<TaskInventoryItem> il = new List<TaskInventoryItem>(m_taskInventory.Values);
|
||||
foreach(TaskInventoryItem i in il)
|
||||
foreach (TaskInventoryItem i in il)
|
||||
{
|
||||
if (i.Name == item.Name)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#region Header
|
||||
|
||||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
|
@ -27,8 +25,6 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#endregion Header
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
|
|
@ -1093,8 +1093,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
);
|
||||
|
||||
//look for prims with explicit sit targets that are available
|
||||
foreach(SceneObjectPart part in partArray) {
|
||||
|
||||
foreach (SceneObjectPart part in partArray)
|
||||
{
|
||||
// Is a sit target available?
|
||||
Vector3 avSitOffSet = part.GetSitTargetPosition();
|
||||
Quaternion avSitOrientation = part.GetSitTargetOrientation();
|
||||
|
|
|
@ -3211,7 +3211,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if(add != 0)
|
||||
if (add != 0)
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = true;
|
||||
else
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = false;
|
||||
|
@ -4408,7 +4408,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
{
|
||||
foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
|
||||
{
|
||||
if(inv.Value.Name == name)
|
||||
if (inv.Value.Name == name)
|
||||
return inv.Key;
|
||||
}
|
||||
return LLUUID.Zero;
|
||||
|
@ -4419,7 +4419,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
m_host.AddScriptLPS(1);
|
||||
|
||||
LLUUID destID;
|
||||
if(!LLUUID.TryParse(destination, out destID))
|
||||
if (!LLUUID.TryParse(destination, out destID))
|
||||
return;
|
||||
|
||||
List<LLUUID> itemList = new List<LLUUID>();
|
||||
|
@ -4427,19 +4427,19 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
foreach (Object item in inventory.Data)
|
||||
{
|
||||
LLUUID itemID;
|
||||
if(LLUUID.TryParse(item.ToString(), out itemID))
|
||||
if (LLUUID.TryParse(item.ToString(), out itemID))
|
||||
{
|
||||
itemList.Add(itemID);
|
||||
}
|
||||
else
|
||||
{
|
||||
itemID = GetTaskInventoryItem(item.ToString());
|
||||
if(itemID != LLUUID.Zero)
|
||||
if (itemID != LLUUID.Zero)
|
||||
itemList.Add(itemID);
|
||||
}
|
||||
}
|
||||
|
||||
if(itemList.Count == 0)
|
||||
if (itemList.Count == 0)
|
||||
return;
|
||||
|
||||
m_ScriptEngine.World.MoveTaskInventoryItems(destID, category, m_host, itemList);
|
||||
|
@ -4714,7 +4714,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
if (inv.Value.Name == name)
|
||||
{
|
||||
// make sure the object is a script
|
||||
if(10 == inv.Value.Type)
|
||||
if (10 == inv.Value.Type)
|
||||
{
|
||||
found = true;
|
||||
srcId = inv.Key;
|
||||
|
@ -5175,7 +5175,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
LSL_Types.Vector3 holesize;
|
||||
LSL_Types.Vector3 profilecut;
|
||||
|
||||
switch(code)
|
||||
switch (code)
|
||||
{
|
||||
case (int)BuiltIn_Commands_BaseClass.PRIM_TYPE_BOX:
|
||||
if (remain < 6)
|
||||
|
|
|
@ -1295,7 +1295,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
|
||||
public override bool Equals(Object o)
|
||||
{
|
||||
if(!(o is LSLInteger))
|
||||
if (!(o is LSLInteger))
|
||||
return false;
|
||||
return value == ((LSLInteger)o).value;
|
||||
}
|
||||
|
@ -1452,7 +1452,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
|
||||
public override bool Equals(Object o)
|
||||
{
|
||||
if(!(o is LSLFloat))
|
||||
if (!(o is LSLFloat))
|
||||
return false;
|
||||
return value == ((LSLFloat)o).value;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,30 @@
|
|||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of the OpenSim Project nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;using Tools;
|
||||
//%+STRING_CONSTANT+3
|
||||
public class STRING_CONSTANT : TOKEN{
|
||||
|
|
|
@ -1,3 +1,30 @@
|
|||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of the OpenSim Project nor the
|
||||
* names of its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;using Tools;
|
||||
//%+LSLProgramRoot+95
|
||||
public class LSLProgramRoot : SYMBOL{
|
||||
|
|
|
@ -132,7 +132,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
|||
int eventFlags = m_scriptEngine.m_ScriptManager.GetStateEventFlags(localID, itemID);
|
||||
m_host.SetScriptEvents(itemID, eventFlags);
|
||||
m_scriptEngine.m_EventQueueManager.AddToScriptQueue(localID, itemID, "state_entry", EventQueueManager.llDetectNull, new object[] { });
|
||||
if(postOnRez)
|
||||
if (postOnRez)
|
||||
{
|
||||
m_scriptEngine.m_EventQueueManager.AddToScriptQueue(localID, itemID, "on_rez", EventQueueManager.llDetectNull, new object[] { new LSL_Types.LSLInteger(startParam) });
|
||||
}
|
||||
|
|
|
@ -2044,7 +2044,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>();
|
||||
if(emailModule == null)
|
||||
if (emailModule == null)
|
||||
return;
|
||||
|
||||
emailModule.SendEmail(m_host.UUID, address, subject, message);
|
||||
|
@ -2054,13 +2054,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
IEmailModule emailModule = m_ScriptEngine.World.RequestModuleInterface<IEmailModule>();
|
||||
if(emailModule == null)
|
||||
if (emailModule == null)
|
||||
return;
|
||||
Email email;
|
||||
|
||||
email = emailModule.GetNextEmail(m_host.UUID, address, subject);
|
||||
|
||||
if(email == null)
|
||||
if (email == null)
|
||||
return;
|
||||
|
||||
m_ScriptEngine.PostObjectEvent(m_host.LocalId,
|
||||
|
@ -3163,7 +3163,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if(add != 0)
|
||||
if (add != 0)
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = true;
|
||||
else
|
||||
m_host.ParentGroup.RootPart.AllowedDrop = false;
|
||||
|
@ -4283,7 +4283,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
|
||||
{
|
||||
if(inv.Value.Name == name)
|
||||
if (inv.Value.Name == name)
|
||||
return inv.Key;
|
||||
}
|
||||
return LLUUID.Zero;
|
||||
|
@ -4294,7 +4294,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
m_host.AddScriptLPS(1);
|
||||
|
||||
LLUUID destID;
|
||||
if(!LLUUID.TryParse(destination, out destID))
|
||||
if (!LLUUID.TryParse(destination, out destID))
|
||||
return;
|
||||
|
||||
List<LLUUID> itemList = new List<LLUUID>();
|
||||
|
@ -4302,19 +4302,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
foreach (Object item in inventory.Data)
|
||||
{
|
||||
LLUUID itemID;
|
||||
if(LLUUID.TryParse(item.ToString(), out itemID))
|
||||
if (LLUUID.TryParse(item.ToString(), out itemID))
|
||||
{
|
||||
itemList.Add(itemID);
|
||||
}
|
||||
else
|
||||
{
|
||||
itemID = GetTaskInventoryItem(item.ToString());
|
||||
if(itemID != LLUUID.Zero)
|
||||
if (itemID != LLUUID.Zero)
|
||||
itemList.Add(itemID);
|
||||
}
|
||||
}
|
||||
|
||||
if(itemList.Count == 0)
|
||||
if (itemList.Count == 0)
|
||||
return;
|
||||
|
||||
m_ScriptEngine.World.MoveTaskInventoryItems(destID, category, m_host, itemList);
|
||||
|
@ -4985,7 +4985,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
LSL_Types.Vector3 holesize;
|
||||
LSL_Types.Vector3 profilecut;
|
||||
|
||||
switch(code)
|
||||
switch (code)
|
||||
{
|
||||
case (int)ScriptBaseClass.PRIM_TYPE_BOX:
|
||||
if (remain < 6)
|
||||
|
|
|
@ -331,12 +331,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
Object[] parms = new Object[]
|
||||
{ localID, itemID, script, startParam, postOnRez};
|
||||
|
||||
lock(m_CompileQueue)
|
||||
lock (m_CompileQueue)
|
||||
{
|
||||
m_CompileQueue.Enqueue(parms);
|
||||
if(m_CurrentCompile == null)
|
||||
if (m_CurrentCompile == null)
|
||||
{
|
||||
if(m_firstStart)
|
||||
if (m_firstStart)
|
||||
{
|
||||
m_firstStart = false;
|
||||
m_CurrentCompile = m_ThreadPool.QueueWorkItem(
|
||||
|
@ -355,9 +355,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
{
|
||||
Thread.Sleep(30000);
|
||||
|
||||
lock(m_CompileQueue)
|
||||
lock (m_CompileQueue)
|
||||
{
|
||||
if(m_CompileQueue.Count > 0)
|
||||
if (m_CompileQueue.Count > 0)
|
||||
{
|
||||
m_CurrentCompile = m_ThreadPool.QueueWorkItem(
|
||||
new WorkItemCallback(
|
||||
|
@ -374,10 +374,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
public Object DoOnRezScriptQueue(Object dummy)
|
||||
{
|
||||
Object o;
|
||||
lock(m_CompileQueue)
|
||||
lock (m_CompileQueue)
|
||||
{
|
||||
o = m_CompileQueue.Dequeue();
|
||||
if(o == null)
|
||||
if (o == null)
|
||||
{
|
||||
m_CurrentCompile = null;
|
||||
return null;
|
||||
|
@ -386,9 +386,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
|
||||
DoOnRezScript(o);
|
||||
|
||||
lock(m_CompileQueue)
|
||||
lock (m_CompileQueue)
|
||||
{
|
||||
if(m_CompileQueue.Count > 0)
|
||||
if (m_CompileQueue.Count > 0)
|
||||
{
|
||||
m_CurrentCompile = m_ThreadPool.QueueWorkItem(
|
||||
new WorkItemCallback(
|
||||
|
@ -1056,7 +1056,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
{
|
||||
m_RunEvents = false;
|
||||
Start();
|
||||
if(postOnRez)
|
||||
if (postOnRez)
|
||||
PostEvent(new EventParams("on_rez",
|
||||
new Object[] {new LSL_Types.LSLInteger(startParam)}, new DetectParams[0]));
|
||||
}
|
||||
|
@ -1078,7 +1078,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
Start();
|
||||
PostEvent(new EventParams("state_entry",
|
||||
new Object[0], new DetectParams[0]));
|
||||
if(postOnRez)
|
||||
if (postOnRez)
|
||||
PostEvent(new EventParams("on_rez",
|
||||
new Object[] {new LSL_Types.LSLInteger(startParam)}, new DetectParams[0]));
|
||||
|
||||
|
@ -1090,7 +1090,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
Start();
|
||||
PostEvent(new EventParams("state_entry",
|
||||
new Object[0], new DetectParams[0]));
|
||||
if(postOnRez)
|
||||
if (postOnRez)
|
||||
PostEvent(new EventParams("on_rez",
|
||||
new Object[] {new LSL_Types.LSLInteger(startParam)}, new DetectParams[0]));
|
||||
}
|
||||
|
@ -1102,7 +1102,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
PostEvent(new EventParams("state_entry",
|
||||
new Object[0], new DetectParams[0]));
|
||||
|
||||
if(postOnRez)
|
||||
if (postOnRez)
|
||||
PostEvent(new EventParams("on_rez",
|
||||
new Object[] {new LSL_Types.LSLInteger(startParam)}, new DetectParams[0]));
|
||||
}
|
||||
|
@ -1215,7 +1215,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
// m_Engine.Log.DebugFormat("[XEngine] Posted event {2} in state {3} to {0}.{1}",
|
||||
// m_PrimName, m_ScriptName, data.EventName, m_State);
|
||||
|
||||
if(!Running)
|
||||
if (!Running)
|
||||
return;
|
||||
|
||||
lock (m_EventQueue)
|
||||
|
@ -1393,7 +1393,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
|
||||
m_Script.ResetVars();
|
||||
m_Engine.m_AsyncCommands.RemoveScript(m_LocalID, m_ItemID);
|
||||
if(m_CurrentEvent != "state_entry")
|
||||
if (m_CurrentEvent != "state_entry")
|
||||
{
|
||||
PostEvent(new EventParams("state_entry",
|
||||
new Object[0], new DetectParams[0]));
|
||||
|
|
Loading…
Reference in New Issue