Formatting cleanup.
parent
ca52c3ef26
commit
a23d64dec1
|
@ -181,7 +181,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
|
|||
|
||||
m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler());
|
||||
m_httpServer.AddStreamHandler(new OpenSim.XSimStatusHandler(m_openSim));
|
||||
if (m_openSim.userStatsURI != String.Empty )
|
||||
if (m_openSim.userStatsURI != String.Empty)
|
||||
m_httpServer.AddStreamHandler(new OpenSim.UXSimStatusHandler(m_openSim));
|
||||
}
|
||||
|
||||
|
@ -213,7 +213,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
|
|||
|
||||
m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler());
|
||||
m_httpServer.AddStreamHandler(new OpenSim.XSimStatusHandler(m_openSim));
|
||||
if (m_openSim.userStatsURI != String.Empty )
|
||||
if (m_openSim.userStatsURI != String.Empty)
|
||||
m_httpServer.AddStreamHandler(new OpenSim.UXSimStatusHandler(m_openSim));
|
||||
}
|
||||
|
||||
|
|
|
@ -392,9 +392,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
// on anything other than a URI token boundary. Otherwise we
|
||||
// may match on URL's that were not intended for this handler.
|
||||
|
||||
return ( path.Length == key.Length ||
|
||||
path.Substring(key.Length,1) == Rest.UrlPathSeparator);
|
||||
|
||||
return (path.Length == key.Length ||
|
||||
path.Substring(key.Length, 1) == Rest.UrlPathSeparator);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -416,9 +415,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
// on anything other than a URI token boundary. Otherwise we
|
||||
// may match on URL's that were not intended for this handler.
|
||||
|
||||
return ( path.Length == key.Length ||
|
||||
path.Substring(key.Length,1) == Rest.UrlPathSeparator);
|
||||
|
||||
return (path.Length == key.Length ||
|
||||
path.Substring(key.Length, 1) == Rest.UrlPathSeparator);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -465,8 +463,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
|
||||
try
|
||||
{
|
||||
handled = ( FindPathHandler(request, response) ||
|
||||
FindStreamHandler(request, response) );
|
||||
handled = (FindPathHandler(request, response) ||
|
||||
FindStreamHandler(request, response));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -740,7 +740,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
|
||||
// Scan the set of folders in the entity collection for an
|
||||
// entry that matches the context folder. It is assumed that
|
||||
// the only reliable indicator of this is a zero UUID ( using
|
||||
// the only reliable indicator of this is a zero UUID (using
|
||||
// implicit context), or the parent's UUID matches that of the
|
||||
// URI designated node (explicit context). We don't allow
|
||||
// ambiguity in this case because this is POST and we are
|
||||
|
@ -1621,7 +1621,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
|
||||
foreach (InventoryFolderBase parent in ic.rdata.folders)
|
||||
{
|
||||
if ( parent.ID == result.ParentID )
|
||||
if (parent.ID == result.ParentID)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
|
@ -2002,7 +2002,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
|||
|
||||
foreach (InventoryFolderBase parent in ic.rdata.folders)
|
||||
{
|
||||
if ( parent.ID == ic.Item.Folder )
|
||||
if (parent.ID == ic.Item.Folder)
|
||||
{
|
||||
found = true;
|
||||
break;
|
||||
|
|
|
@ -183,7 +183,7 @@ namespace OpenSim.Data.NHibernate
|
|||
ICriteria criteria = manager.GetSession().CreateCriteria(typeof(SceneObjectPart));
|
||||
criteria.Add(Expression.Eq("RegionID", region));
|
||||
criteria.Add(Expression.Eq("ParentUUID", uuid));
|
||||
criteria.AddOrder( Order.Asc("ParentID") );
|
||||
criteria.AddOrder(Order.Asc("ParentID"));
|
||||
|
||||
foreach (SceneObjectPart p in criteria.List())
|
||||
{
|
||||
|
|
|
@ -113,7 +113,7 @@ namespace OpenSim.Data
|
|||
public RegionProfileData RequestSimProfileData(string regionName, Uri gridserverUrl,
|
||||
string gridserverSendkey, string gridserverRecvkey)
|
||||
{
|
||||
return RequestSimData(gridserverUrl, gridserverSendkey, "region_name_search", regionName );
|
||||
return RequestSimData(gridserverUrl, gridserverSendkey, "region_name_search", regionName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1195,14 +1195,14 @@ namespace OpenSim.Data.SQLite
|
|||
|
||||
private void setupAgentCommands(SqliteDataAdapter da, SqliteConnection conn)
|
||||
{
|
||||
da.InsertCommand = SQLiteUtil.createInsertCommand( "useragents", ds.Tables["useragents"]);
|
||||
da.InsertCommand = SQLiteUtil.createInsertCommand("useragents", ds.Tables["useragents"]);
|
||||
da.InsertCommand.Connection = conn;
|
||||
|
||||
da.UpdateCommand = SQLiteUtil.createUpdateCommand( "useragents", "UUID=:UUID", ds.Tables["useragents"]);
|
||||
da.UpdateCommand = SQLiteUtil.createUpdateCommand("useragents", "UUID=:UUID", ds.Tables["useragents"]);
|
||||
da.UpdateCommand.Connection = conn;
|
||||
|
||||
SqliteCommand delete = new SqliteCommand( "delete from useragents where UUID = :ProfileID");
|
||||
delete.Parameters.Add( SQLiteUtil.createSqliteParameter( "ProfileID", typeof(String)));
|
||||
SqliteCommand delete = new SqliteCommand("delete from useragents where UUID = :ProfileID");
|
||||
delete.Parameters.Add(SQLiteUtil.createSqliteParameter("ProfileID", typeof(String)));
|
||||
delete.Connection = conn;
|
||||
da.DeleteCommand = delete;
|
||||
}
|
||||
|
|
|
@ -286,7 +286,7 @@ namespace OpenSim.Framework.Communications.Cache
|
|||
// Take all ther received items and put them into the folder tree heirarchy
|
||||
foreach (InventoryItemBase item in items) {
|
||||
InventoryFolderImpl folder = resolvedFolders.ContainsKey(item.Folder) ? resolvedFolders[item.Folder] : null;
|
||||
ItemReceive(item, folder );
|
||||
ItemReceive(item, folder);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
@ -64,7 +64,7 @@ namespace OpenSim.Framework.Communications.Tests
|
|||
{
|
||||
UserProfileData userProfile = new UserProfileData();
|
||||
|
||||
// userProfile.ID = new UUID( Util.GetHashGuid( uri.ToString(), AssetCache.AssetInfo.Secret ));
|
||||
// userProfile.ID = new UUID(Util.GetHashGuid(uri.ToString(), AssetCache.AssetInfo.Secret));
|
||||
|
||||
return userProfile;
|
||||
}
|
||||
|
|
|
@ -192,7 +192,7 @@ namespace OpenSim.Framework
|
|||
public delegate void ParcelReturnObjectsRequest(
|
||||
int local_id, uint return_type, UUID[] agent_ids, UUID[] selected_ids, IClientAPI remote_client);
|
||||
|
||||
public delegate void ParcelDeedToGroup( int local_id, UUID group_id, IClientAPI remote_client);
|
||||
public delegate void ParcelDeedToGroup(int local_id, UUID group_id, IClientAPI remote_client);
|
||||
|
||||
public delegate void EstateOwnerMessageRequest(
|
||||
UUID AgentID, UUID SessionID, UUID TransactionID, UUID Invoice, byte[] Method, byte[][] Parameters,
|
||||
|
|
|
@ -348,7 +348,7 @@ namespace OpenSim.Framework
|
|||
/// <seealso cref="TryGetValue"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
void Remove( TKey key );
|
||||
void Remove(TKey key);
|
||||
|
||||
/// <summary>
|
||||
/// Removes elements that are associated with one of <paramref name="keys"/> from the <see cref="ICnmCache{TKey,TValue}"/>.
|
||||
|
@ -364,7 +364,7 @@ namespace OpenSim.Framework
|
|||
/// <seealso cref="TryGetValue"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
void RemoveRange( IEnumerable<TKey> keys );
|
||||
void RemoveRange(IEnumerable<TKey> keys);
|
||||
|
||||
/// <summary>
|
||||
/// Add or replace an element with the provided <paramref name="key"/>, <paramref name="value"/> and <paramref name="size"/> to
|
||||
|
@ -411,7 +411,7 @@ namespace OpenSim.Framework
|
|||
/// <seealso cref="TryGetValue"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
bool Set( TKey key, TValue value, long size );
|
||||
bool Set(TKey key, TValue value, long size);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <paramref name="value"/> associated with the specified <paramref name="key"/>.
|
||||
|
@ -436,6 +436,6 @@ namespace OpenSim.Framework
|
|||
/// <seealso cref="RemoveRange"/>
|
||||
/// <seealso cref="Clear"/>
|
||||
/// <seealso cref="PurgeExpired"/>
|
||||
bool TryGetValue( TKey key, out TValue value );
|
||||
bool TryGetValue(TKey key, out TValue value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -490,13 +490,13 @@ namespace OpenSim.Framework.Servers
|
|||
public string StatReport(OSHttpRequest httpRequest)
|
||||
{
|
||||
// If we catch a request for "callback", wrap the response in the value for jsonp
|
||||
if ( httpRequest.Query.ContainsKey("callback"))
|
||||
if (httpRequest.Query.ContainsKey("callback"))
|
||||
{
|
||||
return httpRequest.Query["callback"].ToString() + "(" + m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version ) + ");";
|
||||
return httpRequest.Query["callback"].ToString() + "(" + m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version) + ");";
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version );
|
||||
return m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,6 @@ using OpenMetaverse.StructuredData;
|
|||
|
||||
namespace OpenSim.Framework.Servers.HttpServer
|
||||
{
|
||||
public delegate OSD LLSDMethod( string path, OSD request, string endpoint );
|
||||
public delegate OSD LLSDMethod(string path, OSD request, string endpoint);
|
||||
public delegate OSD DefaultLLSDMethod(OSD request, IPEndPoint client);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace OpenSim.Framework.Servers.HttpServer.Tests
|
|||
[Test]
|
||||
public void TestConstructor()
|
||||
{
|
||||
new BaseRequestHandlerImpl( null, null );
|
||||
new BaseRequestHandlerImpl(null, null);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace OpenSim.Framework.Servers.Tests
|
|||
TestHelper.InMethod();
|
||||
|
||||
// GetAssetStreamHandler handler =
|
||||
new GetAssetStreamHandler( null );
|
||||
new GetAssetStreamHandler(null);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace OpenSim.Framework.Servers.Tests
|
|||
[Test]
|
||||
public void TestVersionLength()
|
||||
{
|
||||
Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars." );
|
||||
Assert.AreEqual(VersionInfo.VERSIONINFO_VERSION_LENGTH, VersionInfo.Version.Length," VersionInfo.Version string not " + VersionInfo.VERSIONINFO_VERSION_LENGTH + " chars.");
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -165,7 +165,7 @@ namespace OpenSim.Framework
|
|||
DefaultStartupMsg = (string) configuration_result;
|
||||
break;
|
||||
case "default_grid_server":
|
||||
GridServerURL = new Uri( (string) configuration_result );
|
||||
GridServerURL = new Uri((string) configuration_result);
|
||||
break;
|
||||
case "grid_send_key":
|
||||
GridSendKey = (string) configuration_result;
|
||||
|
|
|
@ -1060,11 +1060,11 @@ namespace OpenSim.Framework
|
|||
|
||||
public static Guid GetHashGuid(string data, string salt)
|
||||
{
|
||||
byte[] hash = ComputeMD5Hash( data + salt );
|
||||
byte[] hash = ComputeMD5Hash(data + salt);
|
||||
|
||||
//string s = BitConverter.ToString(hash);
|
||||
|
||||
Guid guid = new Guid( hash );
|
||||
Guid guid = new Guid(hash);
|
||||
|
||||
return guid;
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ namespace OpenSim.Framework
|
|||
{
|
||||
//int randNum = Util.RandomClass.Next(0, 1000);
|
||||
float range = setting.VisualParam.MaxValue - setting.VisualParam.MinValue;
|
||||
// float val =((float) randNum )/ ((float)(1000.0f / range));
|
||||
// float val = ((float) randNum) / ((float)(1000.0f / range));
|
||||
float val = (float)Util.RandomClass.NextDouble() * range * 0.2f;
|
||||
setting.Value = setting.VisualParam.MinValue + (range / 2) + val;
|
||||
}
|
||||
|
|
|
@ -391,7 +391,7 @@ namespace OpenSim
|
|||
scene.LoadPrimsFromStorage(regionInfo.originRegionID);
|
||||
|
||||
// TODO : Try setting resource for region xstats here on scene
|
||||
scene.CommsManager.HttpServer.AddStreamHandler( new Region.Framework.Scenes.RegionStatsHandler(regionInfo));
|
||||
scene.CommsManager.HttpServer.AddStreamHandler(new Region.Framework.Scenes.RegionStatsHandler(regionInfo));
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
@ -9453,7 +9453,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
}
|
||||
|
||||
// in the end, we dereference this, so we have to check if it's null
|
||||
if (m_imageManager != null )
|
||||
if (m_imageManager != null)
|
||||
m_imageManager.ProcessImageQueue(10);
|
||||
PacketPool.Instance.ReturnPacket(Pack);
|
||||
}
|
||||
|
@ -10164,7 +10164,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
mirplk.AgentData.AgentID = AgentId;
|
||||
mirplk.RequestData.ItemType = mapitemtype;
|
||||
mirplk.Data = new MapItemReplyPacket.DataBlock[replies.Length];
|
||||
for (int i = 0; i < replies.Length; i++ )
|
||||
for (int i = 0; i < replies.Length; i++)
|
||||
{
|
||||
MapItemReplyPacket.DataBlock mrdata = new MapItemReplyPacket.DataBlock();
|
||||
mrdata.X = replies[i].x;
|
||||
|
|
|
@ -133,7 +133,7 @@ namespace OpenSim.Region.Communications.Hypergrid
|
|||
{
|
||||
// Region doesn't exist here. Trying to link remote region
|
||||
|
||||
m_log.Info("[HGrid]: Linking remote region " + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort );
|
||||
m_log.Info("[HGrid]: Linking remote region " + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort);
|
||||
regionInfo.RegionID = LinkRegion(regionInfo); // UUID.Random();
|
||||
if (!regionInfo.RegionID.Equals(UUID.Zero))
|
||||
{
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace OpenSim.Region.Communications.Local
|
|||
}
|
||||
else
|
||||
{
|
||||
m_log.WarnFormat( "[LOCAL INVENTORY SERVICE]: User {0} inventory not available", userID);
|
||||
m_log.WarnFormat("[LOCAL INVENTORY SERVICE]: User {0} inventory not available", userID);
|
||||
}
|
||||
|
||||
callback(folders, items);
|
||||
|
|
|
@ -435,7 +435,7 @@ namespace OpenSim.Region.Communications.OGS1
|
|||
// string externalUri = (string) responseData["sim_uri"];
|
||||
|
||||
//IPEndPoint neighbourInternalEndPoint = new IPEndPoint(IPAddress.Parse(internalIpStr), (int) port);
|
||||
regionInfo = RegionInfo.Create(regionID, regionName, regX, regY, externalHostName, httpPort, simPort, remotingPort, simURI );
|
||||
regionInfo = RegionInfo.Create(regionID, regionName, regX, regY, externalHostName, httpPort, simPort, remotingPort, simURI);
|
||||
|
||||
if (m_useRemoteRegionCache)
|
||||
{
|
||||
|
|
|
@ -231,7 +231,7 @@ namespace Flotsam.RegionModules.AssetCache
|
|||
|
||||
private void UpdateMemoryCache(string key, AssetBase asset)
|
||||
{
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
{
|
||||
if (m_MemoryExpiration > TimeSpan.Zero)
|
||||
{
|
||||
|
@ -405,7 +405,7 @@ namespace Flotsam.RegionModules.AssetCache
|
|||
File.Delete(filename);
|
||||
}
|
||||
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
m_MemoryCache.Remove(id);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@ -424,7 +424,7 @@ namespace Flotsam.RegionModules.AssetCache
|
|||
Directory.Delete(dir);
|
||||
}
|
||||
|
||||
if( m_MemoryCacheEnabled )
|
||||
if (m_MemoryCacheEnabled)
|
||||
m_MemoryCache.Clear();
|
||||
}
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
|||
{
|
||||
byte dialog = im.dialog;
|
||||
|
||||
if ( dialog != (byte)InstantMessageDialog.MessageFromAgent
|
||||
if (dialog != (byte)InstantMessageDialog.MessageFromAgent
|
||||
&& dialog != (byte)InstantMessageDialog.StartTyping
|
||||
&& dialog != (byte)InstantMessageDialog.StopTyping
|
||||
&& dialog != (byte)InstantMessageDialog.MessageFromObject)
|
||||
|
|
|
@ -219,7 +219,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
|||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
else if (im.dialog == (byte) InstantMessageDialog.InventoryAccepted)
|
||||
|
@ -233,7 +233,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
|||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
else if (im.dialog == (byte) InstantMessageDialog.InventoryDeclined)
|
||||
|
@ -300,7 +300,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
|||
else
|
||||
{
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -890,8 +890,8 @@ namespace OpenSim.Region.CoreModules.InterGrid
|
|||
|
||||
responseMap["sim_host"] = OSD.FromString(rezRespSim_host);
|
||||
responseMap["sim_port"] = OSD.FromInteger(rrPort);
|
||||
responseMap["region_x"] = OSD.FromInteger(rrX );
|
||||
responseMap["region_y"] = OSD.FromInteger(rrY );
|
||||
responseMap["region_x"] = OSD.FromInteger(rrX);
|
||||
responseMap["region_y"] = OSD.FromInteger(rrY);
|
||||
responseMap["region_id"] = OSD.FromUUID(rrRID);
|
||||
responseMap["sim_access"] = OSD.FromString(rrAccess);
|
||||
|
||||
|
|
|
@ -511,7 +511,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
|||
if (z_sort.ContainsKey(sortedlocalIds[s]))
|
||||
{
|
||||
DrawStruct rectDrawStruct = z_sort[sortedlocalIds[s]];
|
||||
for (int r = 0; r < rectDrawStruct.trns.Length; r++ )
|
||||
for (int r = 0; r < rectDrawStruct.trns.Length; r++)
|
||||
{
|
||||
g.FillPolygon(rectDrawStruct.brush,rectDrawStruct.trns[r].pts);
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public RegionStatsHandler(OpenSim.Framework.RegionInfo region_info )
|
||||
public RegionStatsHandler(OpenSim.Framework.RegionInfo region_info)
|
||||
{
|
||||
regionInfo = region_info;
|
||||
osRXStatsURI = Util.SHA1Hash(regionInfo.regionSecret);
|
||||
|
@ -95,7 +95,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
private string Report()
|
||||
{
|
||||
OSDMap args = new OSDMap(30);
|
||||
//int time = Util.ToUnixTime( DateTime.Now );
|
||||
//int time = Util.ToUnixTime(DateTime.Now);
|
||||
args["OSStatsURI"] = OSD.FromString("http://" + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort + "/" + osXStatsURI + "/");
|
||||
args["TimeZoneName"] = OSD.FromString(localZone);
|
||||
args["TimeZoneOffs"] = OSD.FromReal(utcOffset.TotalHours);
|
||||
|
|
|
@ -645,7 +645,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
public IJ2KDecoder j2kdecode;
|
||||
private System.Threading.Thread thisthread;
|
||||
|
||||
public void run( object o)
|
||||
public void run(object o)
|
||||
{
|
||||
for (int i=0;i<arrassets.Length;i++)
|
||||
{
|
||||
|
|
|
@ -3325,7 +3325,7 @@ if (m_shape != null) {
|
|||
bool wasPhantom = ((ObjectFlags & (uint)PrimFlags.Phantom) != 0);
|
||||
bool wasVD = VolumeDetectActive;
|
||||
|
||||
if ((UsePhysics == wasUsingPhysics) && (wasTemporary == IsTemporary) && (wasPhantom == IsPhantom) && (IsVD==wasVD) )
|
||||
if ((UsePhysics == wasUsingPhysics) && (wasTemporary == IsTemporary) && (wasPhantom == IsPhantom) && (IsVD==wasVD))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -3477,7 +3477,7 @@ if (m_shape != null) {
|
|||
}
|
||||
else
|
||||
{ // Remove VolumeDetect in any case. Note, it's safe to call SetVolumeDetect as often as you like
|
||||
// (mumbles, well, at least if you have infinte CPU powers :-) )
|
||||
// (mumbles, well, at least if you have infinte CPU powers :-))
|
||||
if (this.PhysActor != null)
|
||||
{
|
||||
PhysActor.SetVolumeDetect(0);
|
||||
|
|
|
@ -2032,7 +2032,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
UUID[] animIDs;
|
||||
int[] sequenceNums;
|
||||
UUID[] objectIDs;
|
||||
m_animations.GetArrays( out animIDs, out sequenceNums, out objectIDs);
|
||||
m_animations.GetArrays(out animIDs, out sequenceNums, out objectIDs);
|
||||
return animIDs;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,13 +68,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
|||
entman.Add(sog);
|
||||
|
||||
found = (SceneObjectGroup)entman[obj1];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1));
|
||||
found = (SceneObjectGroup)entman[li1];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj1));
|
||||
found = (SceneObjectGroup)entman[obj2];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2));
|
||||
found = (SceneObjectGroup)entman[li2];
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2) );
|
||||
Assert.That(found.UUID ,Is.EqualTo(obj2));
|
||||
|
||||
entman.Remove(obj1);
|
||||
entman.Remove(li2);
|
||||
|
|
|
@ -404,7 +404,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
|||
|
||||
private bool IsAConnectionMatchFor(ChannelState cs)
|
||||
{
|
||||
return (
|
||||
return (
|
||||
Server == cs.Server &&
|
||||
IrcChannel == cs.IrcChannel &&
|
||||
Port == cs.Port &&
|
||||
|
@ -419,7 +419,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
|||
|
||||
private bool IsAPerfectMatchFor(ChannelState cs)
|
||||
{
|
||||
return ( IsAConnectionMatchFor(cs) &&
|
||||
return (IsAConnectionMatchFor(cs) &&
|
||||
RelayChannelOut == cs.RelayChannelOut &&
|
||||
PrivateMessageFormat == cs.PrivateMessageFormat &&
|
||||
NoticeMessageFormat == cs.NoticeMessageFormat &&
|
||||
|
@ -598,7 +598,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
|||
{
|
||||
foreach (ChannelState cs in IRCBridgeModule.m_channels)
|
||||
{
|
||||
if ( p_irc == cs.irc)
|
||||
if (p_irc == cs.irc)
|
||||
{
|
||||
|
||||
// This non-IRC differentiator moved to here
|
||||
|
|
|
@ -147,7 +147,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
|||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
|
@ -184,7 +184,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
|||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
|
@ -230,7 +230,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
|||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
|
@ -263,7 +263,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
|||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
response["int_response_code"] = 200;
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<document type=\"freeswitch/xml\">\r\n" +
|
||||
"<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
|
@ -317,7 +317,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
|||
// response["content_type"] = "text/xml";
|
||||
// response["keepalive"] = false;
|
||||
// response["int_response_code"] = 200;
|
||||
// response["str_response_string"] = String.Format(
|
||||
// response["str_response_string"] = String.Format(
|
||||
// "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
// "<document type=\"freeswitch/xml\">\r\n" +
|
||||
// "<section name=\"directory\" description=\"User Directory\">\r\n" +
|
||||
|
|
|
@ -556,7 +556,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
|||
response["content_type"] = "text/xml";
|
||||
response["keepalive"] = false;
|
||||
|
||||
response["str_response_string"] = String.Format(
|
||||
response["str_response_string"] = String.Format(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" +
|
||||
"<VCConfiguration>\r\n"+
|
||||
"<DefaultRealm>{0}</DefaultRealm>\r\n" +
|
||||
|
|
|
@ -1234,7 +1234,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
|||
// UDP version doesn't seem to behave nicely. But we're going to send it out here
|
||||
// with an empty group membership to hopefully remove groups being displayed due
|
||||
// to the core Groups Stub
|
||||
remoteClient.SendGroupMembership( new GroupMembershipData[0] );
|
||||
remoteClient.SendGroupMembership(new GroupMembershipData[0]);
|
||||
|
||||
GroupMembershipData[] membershipData = m_groupData.GetAgentGroupMemberships(GetClientGroupRequestID(remoteClient), dataForAgentID).ToArray();
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
|||
{
|
||||
m_log.Debug("[CONTENT MANAG] saving " + scene.RegionInfo.RegionName + " with log message: " + logMessage + " length of message: " + logMessage.Length);
|
||||
m_database.SaveRegion(scene.RegionInfo.RegionID, scene.RegionInfo.RegionName, logMessage);
|
||||
m_log.Debug("[CONTENT MANAG] the region name we are dealing with heeeeeeeere: " + scene.RegionInfo.RegionName );
|
||||
m_log.Debug("[CONTENT MANAG] the region name we are dealing with heeeeeeeere: " + scene.RegionInfo.RegionName);
|
||||
}
|
||||
|
||||
public void DeleteAllMetaObjects()
|
||||
|
|
|
@ -123,7 +123,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
|||
{
|
||||
String filename = m_repodir + Slash.DirectorySeparatorChar + regionid +
|
||||
Slash.DirectorySeparatorChar + "heightmap.r32";
|
||||
FileStream fs = new FileStream( filename, FileMode.Open);
|
||||
FileStream fs = new FileStream(filename, FileMode.Open);
|
||||
StreamReader sr = new StreamReader(fs);
|
||||
String result = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
|
@ -135,7 +135,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
|||
{
|
||||
String filename = m_repodir + Slash.DirectorySeparatorChar + regionid +
|
||||
Slash.DirectorySeparatorChar + "heightmap.r32";
|
||||
FileStream fs = new FileStream( filename, FileMode.Open);
|
||||
FileStream fs = new FileStream(filename, FileMode.Open);
|
||||
StreamReader sr = new StreamReader(fs);
|
||||
String result = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
|
@ -232,7 +232,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
|||
try
|
||||
{
|
||||
logLocation = revisionDir + Slash.DirectorySeparatorChar + "log";
|
||||
fs = new FileStream( logLocation, FileMode.Open);
|
||||
fs = new FileStream(logLocation, FileMode.Open);
|
||||
sr = new StreamReader(fs);
|
||||
logMessage = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
|
|
|
@ -170,7 +170,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
SceneObjectPart sop = GetSOP();
|
||||
IObjectMaterial[] rets = new IObjectMaterial[getNumberOfSides(sop)];
|
||||
|
||||
for (int i = 0; i < rets.Length;i++ )
|
||||
for (int i = 0; i < rets.Length; i++)
|
||||
{
|
||||
rets[i] = new SOPObjectMaterial(i, sop);
|
||||
}
|
||||
|
|
|
@ -459,7 +459,7 @@ namespace OpenSim.Region.Physics.BulletDotNETPlugin
|
|||
{
|
||||
lock (m_prims)
|
||||
{
|
||||
foreach ( BulletDotNETPrim prim in m_prims)
|
||||
foreach (BulletDotNETPrim prim in m_prims)
|
||||
{
|
||||
if (prim.Body != null)
|
||||
m_world.removeRigidBody(prim.Body);
|
||||
|
|
|
@ -429,8 +429,7 @@ namespace OpenSim.Region.Physics.Meshing
|
|||
{
|
||||
#if SPAM
|
||||
m_log.Debug("Meshmerizer: prim " + primName + " has a size of " + size.ToString() + " which is below threshold of " +
|
||||
|
||||
minSizeForComplexMesh.ToString() + " - creating simple bounding box" );
|
||||
minSizeForComplexMesh.ToString() + " - creating simple bounding box");
|
||||
#endif
|
||||
mesh = CreateBoundingBoxMesh(mesh);
|
||||
mesh.DumpRaw(baseDir, primName, "Z extruded");
|
||||
|
@ -443,6 +442,5 @@ minSizeForComplexMesh.ToString() + " - creating simple bounding box" );
|
|||
|
||||
return mesh;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1116,7 +1116,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
m_log.Warn("[PHYSICS]: re-creating the following avatar ODE data, even though it already exists - "
|
||||
+ (Shell!=IntPtr.Zero ? "Shell ":"")
|
||||
+ (Body!=IntPtr.Zero ? "Body ":"")
|
||||
+ (Amotor!=IntPtr.Zero ? "Amotor ":"") );
|
||||
+ (Amotor!=IntPtr.Zero ? "Amotor ":""));
|
||||
}
|
||||
AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z, m_tensor);
|
||||
|
||||
|
@ -1182,7 +1182,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
m_log.Warn("[PHYSICS]: trying to change capsule size, but the following ODE data is missing - "
|
||||
+ (Shell==IntPtr.Zero ? "Shell ":"")
|
||||
+ (Body==IntPtr.Zero ? "Body ":"")
|
||||
+ (Amotor==IntPtr.Zero ? "Amotor ":"") );
|
||||
+ (Amotor==IntPtr.Zero ? "Amotor ":""));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2593,7 +2593,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
if ((Math.Abs(m_lastposition.X - l_position.X) < 0.02)
|
||||
&& (Math.Abs(m_lastposition.Y - l_position.Y) < 0.02)
|
||||
&& (Math.Abs(m_lastposition.Z - l_position.Z) < 0.02)
|
||||
&& (1.0 - Math.Abs(Quaternion.Dot(m_lastorientation, l_orientation)) < 0.01 ))
|
||||
&& (1.0 - Math.Abs(Quaternion.Dot(m_lastorientation, l_orientation)) < 0.01))
|
||||
{
|
||||
_zeroFlag = true;
|
||||
m_throttleUpdates = false;
|
||||
|
@ -2981,7 +2981,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
Matrix4 transposeMatrix = new Matrix4();
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int j = 0; j < 4; j++)
|
||||
Matrix4SetValue( ref transposeMatrix, i, j, pMat[j, i]);
|
||||
Matrix4SetValue(ref transposeMatrix, i, j, pMat[j, i]);
|
||||
return transposeMatrix;
|
||||
}
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
SetDefaultsForType(pType);
|
||||
Reset();
|
||||
}
|
||||
else if (m_type != Vehicle.TYPE_NONE && pType != Vehicle.TYPE_NONE )
|
||||
else if (m_type != Vehicle.TYPE_NONE && pType != Vehicle.TYPE_NONE)
|
||||
{
|
||||
// Set properties
|
||||
SetDefaultsForType(pType);
|
||||
|
@ -408,7 +408,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
// m_bankingMix = 0.8f;
|
||||
// m_bankingTimescale = 1;
|
||||
// m_referenceFrame = Quaternion.Identity;
|
||||
m_flags &= ~( VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT);
|
||||
m_flags &= ~(VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT);
|
||||
m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_UP_ONLY |
|
||||
VehicleFlag.LIMIT_MOTOR_UP);
|
||||
break;
|
||||
|
|
|
@ -3261,7 +3261,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmap, 0, heightmapWidth, heightmapHeight,
|
||||
(int) heightmapWidthSamples, (int) heightmapHeightSamples, scale,
|
||||
offset, thickness, wrap);
|
||||
d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1 , hfmax + 1 );
|
||||
d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1 , hfmax + 1);
|
||||
LandGeom = d.CreateHeightfield(space, HeightmapData, 1);
|
||||
if (LandGeom != IntPtr.Zero)
|
||||
{
|
||||
|
|
|
@ -2856,7 +2856,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
if (m_TransferModule != null)
|
||||
{
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
ScriptSleep(2000);
|
||||
}
|
||||
|
@ -3668,7 +3668,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
bucket);
|
||||
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -5968,7 +5968,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
bucket);
|
||||
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
|
||||
public void llSetVehicleType(int type)
|
||||
|
@ -6008,7 +6008,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
if (!m_host.ParentGroup.IsDeleted)
|
||||
{
|
||||
m_host.ParentGroup.RootPart.SetVehicleVectorParam(param,
|
||||
new PhysicsVector((float)vec.x, (float)vec.y, (float)vec.z) );
|
||||
new PhysicsVector((float)vec.x, (float)vec.y, (float)vec.z));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7039,7 +7039,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
return (double)Math.Log(val);
|
||||
}
|
||||
|
||||
public LSL_List llGetAnimationList( string id )
|
||||
public LSL_List llGetAnimationList(string id)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
|
|
|
@ -586,7 +586,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
// Check for hostname , attempt to make a hglink
|
||||
// and convert the regionName to the target region
|
||||
if ( regionName.Contains(".") && regionName.Contains(":"))
|
||||
if (regionName.Contains(".") && regionName.Contains(":"))
|
||||
{
|
||||
// Try to link the region
|
||||
RegionInfo regInfo = HGHyperlink.TryLinkRegion(World,
|
||||
|
|
|
@ -206,7 +206,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
|||
// DO NOT THROW JUST THE INNER EXCEPTION!
|
||||
// FriendlyErrors depends on getting the whole exception!
|
||||
//
|
||||
if ( !(tie.InnerException is EventAbortException) )
|
||||
if (!(tie.InnerException is EventAbortException))
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
|
|
@ -1407,7 +1407,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
|||
throw new PrologException(Atom.a("instantiation_error"),
|
||||
"Arg 1 Char and arg 2 Code are both unbound variables");
|
||||
|
||||
return YP.unify(Char, Atom.a(new String(new char[] {(char)codeInt} )));
|
||||
return YP.unify(Char, Atom.a(new String(new char[] {(char)codeInt})));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2343,7 +2343,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
|||
string results = "";
|
||||
for (Match m = Regex.Match(inData,inPattern); m.Success; m=m.NextMatch())
|
||||
{
|
||||
//m_log.Debug( m );
|
||||
//m_log.Debug(m);
|
||||
results += presep+ m + postsep;
|
||||
}
|
||||
return results;
|
||||
|
|
|
@ -676,20 +676,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
|||
|
||||
// It's possible that we don't have an assignment, in which case
|
||||
// the child will be null and we only print the semicolon.
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^
|
||||
ForLoopStatement s = (ForLoopStatement) fl.kids.Pop();
|
||||
if (null != s)
|
||||
{
|
||||
retstr += GenerateForLoopStatement(s);
|
||||
}
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^^
|
||||
retstr += GenerateNode((SYMBOL) fl.kids.Pop());
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^
|
||||
retstr += GenerateForLoopStatement((ForLoopStatement) fl.kids.Pop());
|
||||
retstr += GenerateLine(")");
|
||||
|
||||
|
|
|
@ -573,7 +573,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
|||
display--;
|
||||
|
||||
string severity = "Error";
|
||||
if ( CompErr.IsWarning )
|
||||
if (CompErr.IsWarning)
|
||||
{
|
||||
severity = "Warning";
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
|||
// It's possible that a child is null, for instance when the
|
||||
// assignment part in a for-loop is left out, ie:
|
||||
//
|
||||
// for ( ; i < 10; i++)
|
||||
// for (; i < 10; i++)
|
||||
// {
|
||||
// ...
|
||||
// }
|
||||
|
|
|
@ -447,7 +447,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
|||
// down-cast from Object to the correct type.
|
||||
// Note: no checks for item index being valid are performed
|
||||
|
||||
public LSL_Types.LSLFloat GetLSLFloatItem( int itemIndex )
|
||||
public LSL_Types.LSLFloat GetLSLFloatItem(int itemIndex)
|
||||
{
|
||||
if (m_data[itemIndex] is LSL_Types.LSLInteger)
|
||||
{
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace OpenSim.Region.UserStatistics
|
|||
}
|
||||
o.Append(">\n\t");
|
||||
}
|
||||
|
||||
public static void TR_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</tr>\n");
|
||||
|
@ -52,6 +53,7 @@ namespace OpenSim.Region.UserStatistics
|
|||
{
|
||||
TD_O(ref o, pclass, 0, 0);
|
||||
}
|
||||
|
||||
public static void TD_O(ref StringBuilder o, string pclass, int rowspan, int colspan)
|
||||
{
|
||||
o.Append("<td");
|
||||
|
@ -73,10 +75,12 @@ namespace OpenSim.Region.UserStatistics
|
|||
}
|
||||
o.Append(">");
|
||||
}
|
||||
|
||||
public static void TD_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</td>");
|
||||
}
|
||||
|
||||
public static void TABLE_O(ref StringBuilder o, string pclass)
|
||||
{
|
||||
o.Append("<table");
|
||||
|
@ -86,6 +90,7 @@ namespace OpenSim.Region.UserStatistics
|
|||
}
|
||||
o.Append(">\n\t");
|
||||
}
|
||||
|
||||
public static void TABLE_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</table>\n");
|
||||
|
@ -208,24 +213,22 @@ namespace OpenSim.Region.UserStatistics
|
|||
});
|
||||
// ]]>
|
||||
</script>");
|
||||
|
||||
}
|
||||
|
||||
public static void HtmlHeaders_O ( ref StringBuilder o)
|
||||
public static void HtmlHeaders_O(ref StringBuilder o)
|
||||
{
|
||||
o.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
|
||||
o.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\">");
|
||||
o.Append("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />");
|
||||
|
||||
|
||||
}
|
||||
public static void HtmlHeaders_C ( ref StringBuilder o)
|
||||
|
||||
public static void HtmlHeaders_C(ref StringBuilder o)
|
||||
{
|
||||
o.Append("</HEAD>");
|
||||
o.Append("<BODY>");
|
||||
}
|
||||
|
||||
public static void AddReportLinks( ref StringBuilder o, Dictionary<string, IStatsController> reports, string pClass)
|
||||
public static void AddReportLinks(ref StringBuilder o, Dictionary<string, IStatsController> reports, string pClass)
|
||||
{
|
||||
int repcount = 0;
|
||||
foreach (string str in reports.Keys)
|
||||
|
@ -242,7 +245,8 @@ namespace OpenSim.Region.UserStatistics
|
|||
}
|
||||
}
|
||||
}
|
||||
public static void A( ref StringBuilder o, string linktext, string linkhref, string pClass)
|
||||
|
||||
public static void A(ref StringBuilder o, string linktext, string linkhref, string pClass)
|
||||
{
|
||||
o.Append("<A");
|
||||
if (pClass.Length > 0)
|
||||
|
@ -254,7 +258,6 @@ namespace OpenSim.Region.UserStatistics
|
|||
o.Append("\">");
|
||||
o.Append(linktext);
|
||||
o.Append("</A>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace OpenSim.Region.UserStatistics
|
|||
string formatopen = "";
|
||||
string formatclose = "";
|
||||
|
||||
for (int i = 0; i < result.Length;i++ )
|
||||
for (int i = 0; i < result.Length; i++)
|
||||
{
|
||||
if (result[i].Length >= 30)
|
||||
{
|
||||
|
|
|
@ -398,7 +398,7 @@ namespace OpenSim.Region.UserStatistics
|
|||
|
||||
}
|
||||
|
||||
public string readLogLines( int amount)
|
||||
public string readLogLines(int amount)
|
||||
{
|
||||
Encoding encoding = Encoding.ASCII;
|
||||
int sizeOfChar = encoding.GetByteCount("\n");
|
||||
|
|
|
@ -103,7 +103,7 @@ namespace OpenSim.Tests.Common.Mock
|
|||
|
||||
public void AddAsset(AssetBase asset)
|
||||
{
|
||||
CreateAsset( asset );
|
||||
CreateAsset(asset);
|
||||
}
|
||||
|
||||
public void ExpireAsset(UUID assetID)
|
||||
|
|
|
@ -103,7 +103,7 @@ namespace OpenSim.Tests.Common.Setup
|
|||
public static AssetBase CreateTestAsset()
|
||||
{
|
||||
byte[] expected = new byte[] { 1,2,3 };
|
||||
AssetBase asset = new AssetBase( );
|
||||
AssetBase asset = new AssetBase();
|
||||
asset.ID = Guid.NewGuid().ToString();
|
||||
asset.Data = expected;
|
||||
asset.Type = 2;
|
||||
|
|
|
@ -194,7 +194,7 @@ namespace OpenSim.GridLaunch.GUI.WinForm
|
|||
cblStartupComponents.Items.AddRange(arr);
|
||||
|
||||
// Now correct all check states
|
||||
for (int i = 0; i < cblStartupComponents.Items.Count; i++ )
|
||||
for (int i = 0; i < cblStartupComponents.Items.Count; i++)
|
||||
{
|
||||
string _name = cblStartupComponents.Items[i] as string;
|
||||
bool _checked = Program.Settings.Components[_name];
|
||||
|
|
|
@ -379,7 +379,7 @@ namespace pCampBot
|
|||
{
|
||||
client.Assets.RequestImage(prim.Textures.DefaultTexture.TextureID, ImageType.Normal);
|
||||
}
|
||||
for (int i = 0; i < prim.Textures.FaceTextures.Length; i++ )
|
||||
for (int i = 0; i < prim.Textures.FaceTextures.Length; i++)
|
||||
{
|
||||
if (prim.Textures.FaceTextures[i] != null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue