mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -63,28 +63,28 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||
/// If specified in Regions.ini, the settings should be within the region's section name.
|
||||
/// If specified in OpenSim.ini, the settings should be within the [AutoBackupModule] section.
|
||||
/// Region-specific settings take precedence.
|
||||
///
|
||||
///
|
||||
/// AutoBackupModuleEnabled: True/False. Default: False. If True, use the auto backup module. This setting does not support per-region basis.
|
||||
/// All other settings under [AutoBackupModule] are ignored if AutoBackupModuleEnabled is false, even per-region settings!
|
||||
/// AutoBackup: True/False. Default: False. If True, activate auto backup functionality.
|
||||
/// This is the only required option for enabling auto-backup; the other options have sane defaults.
|
||||
/// AutoBackup: True/False. Default: False. If True, activate auto backup functionality.
|
||||
/// This is the only required option for enabling auto-backup; the other options have sane defaults.
|
||||
/// If False for a particular region, the auto-backup module becomes a no-op for the region, and all other AutoBackup* settings are ignored.
|
||||
/// If False globally (the default), only regions that specifically override it in Regions.ini will get AutoBackup functionality.
|
||||
/// AutoBackupInterval: Double, non-negative value. Default: 720 (12 hours).
|
||||
/// The number of minutes between each backup attempt.
|
||||
/// AutoBackupInterval: Double, non-negative value. Default: 720 (12 hours).
|
||||
/// The number of minutes between each backup attempt.
|
||||
/// If a negative or zero value is given, it is equivalent to setting AutoBackup = False.
|
||||
/// AutoBackupBusyCheck: True/False. Default: True.
|
||||
/// If True, we will only take an auto-backup if a set of conditions are met.
|
||||
/// AutoBackupBusyCheck: True/False. Default: True.
|
||||
/// If True, we will only take an auto-backup if a set of conditions are met.
|
||||
/// These conditions are heuristics to try and avoid taking a backup when the sim is busy.
|
||||
/// AutoBackupSkipAssets
|
||||
/// If true, assets are not saved to the oar file. Considerably reduces impact on simulator when backing up. Intended for when assets db is backed up separately
|
||||
/// AutoBackupKeepFilesForDays
|
||||
/// Backup files older than this value (in days) are deleted during the current backup process, 0 will disable this and keep all backup files indefinitely
|
||||
/// AutoBackupScript: String. Default: not specified (disabled).
|
||||
/// AutoBackupScript: String. Default: not specified (disabled).
|
||||
/// File path to an executable script or binary to run when an automatic backup is taken.
|
||||
/// The file should really be (Windows) an .exe or .bat, or (Linux/Mac) a shell script or binary.
|
||||
/// Trying to "run" directories, or things with weird file associations on Win32, might cause unexpected results!
|
||||
/// argv[1] of the executed file/script will be the file name of the generated OAR.
|
||||
/// argv[1] of the executed file/script will be the file name of the generated OAR.
|
||||
/// If the process can't be spawned for some reason (file not found, no execute permission, etc), write a warning to the console.
|
||||
/// AutoBackupNaming: string. Default: Time.
|
||||
/// One of three strings (case insensitive):
|
||||
@@ -295,7 +295,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||
if (args.Length != 2) {
|
||||
MainConsole.Instance.OutputFormat ("Usage: dobackup <regionname>");
|
||||
return;
|
||||
}
|
||||
}
|
||||
bool found = false;
|
||||
string name = args [1];
|
||||
lock (m_Scenes) {
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||
/// If you use this class in any way outside of AutoBackupModule, you should treat the class as opaque.
|
||||
/// Since it is not part of the framework, you really should not rely upon it outside of the AutoBackupModule implementation.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
public class AutoBackupModuleState
|
||||
{
|
||||
private Dictionary<Guid, string> m_liveRequests = null;
|
||||
|
||||
@@ -151,13 +151,13 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
// to the command line parameters you use to start up your client
|
||||
// This commonly looks like -helperuri http://127.0.0.1:9000/
|
||||
|
||||
|
||||
|
||||
// Local Server.. enables functionality only.
|
||||
httpServer.AddXmlRPCHandler("getCurrencyQuote", quote_func);
|
||||
httpServer.AddXmlRPCHandler("buyCurrency", buy_func);
|
||||
httpServer.AddXmlRPCHandler("preflightBuyLandPrep", preflightBuyLandPrep_func);
|
||||
httpServer.AddXmlRPCHandler("buyLandPrep", landBuy_func);
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (m_scenel.ContainsKey(scene.RegionInfo.RegionHandle))
|
||||
@@ -212,7 +212,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
|
||||
bool give_result = doMoneyTransfer(fromID, toID, amount, 2, description);
|
||||
|
||||
|
||||
|
||||
BalanceUpdate(fromID, toID, give_result, description);
|
||||
|
||||
return give_result;
|
||||
@@ -303,7 +303,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
private bool doMoneyTransfer(UUID Sender, UUID Receiver, int amount, int transactiontype, string description)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -377,10 +377,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
else
|
||||
{
|
||||
m_log.ErrorFormat(
|
||||
"[MONEY]: Could not resolve user {0}",
|
||||
"[MONEY]: Could not resolve user {0}",
|
||||
agentID);
|
||||
}
|
||||
|
||||
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
@@ -464,7 +464,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
Hashtable quoteResponse = new Hashtable();
|
||||
XmlRpcResponse returnval = new XmlRpcResponse();
|
||||
|
||||
|
||||
|
||||
Hashtable currencyResponse = new Hashtable();
|
||||
currencyResponse.Add("estimatedCost", 0);
|
||||
currencyResponse.Add("currencyBuy", amount);
|
||||
@@ -475,7 +475,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
|
||||
returnval.Value = quoteResponse;
|
||||
return returnval;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -485,7 +485,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
// Hashtable requestData = (Hashtable) request.Params[0];
|
||||
// UUID agentId = UUID.Zero;
|
||||
// int amount = 0;
|
||||
|
||||
|
||||
XmlRpcResponse returnval = new XmlRpcResponse();
|
||||
Hashtable returnresp = new Hashtable();
|
||||
returnresp.Add("success", true);
|
||||
@@ -536,7 +536,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
|
||||
// UUID agentId = UUID.Zero;
|
||||
// int amount = 0;
|
||||
|
||||
|
||||
retparam.Add("success", true);
|
||||
ret.Value = retparam;
|
||||
|
||||
@@ -553,7 +553,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
/// <param name="agentID"></param>
|
||||
private void CheckExistAndRefreshFunds(UUID agentID)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -564,13 +564,13 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
private int GetFundsForAgentID(UUID AgentID)
|
||||
{
|
||||
int returnfunds = 0;
|
||||
|
||||
|
||||
return returnfunds;
|
||||
}
|
||||
|
||||
// private void SetLocalFundsForAgentID(UUID AgentID, int amount)
|
||||
// {
|
||||
|
||||
|
||||
// }
|
||||
|
||||
#endregion
|
||||
@@ -689,7 +689,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
/// <see cref="OpenSim.Region.Framework.Scenes.EventManager.ClientClosed"/>
|
||||
public void ClientClosed(UUID AgentID, Scene scene)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -708,19 +708,19 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
|
||||
private void ValidateLandBuy(Object osender, EventManager.LandBuyArgs e)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
lock (e)
|
||||
{
|
||||
e.economyValidated = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void processLandBuy(Object osender, EventManager.LandBuyArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -730,7 +730,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
/// <param name="e"></param>
|
||||
private void MoneyTransferAction(Object osender, EventManager.MoneyTransferArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -739,7 +739,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
/// <param name="avatar"></param>
|
||||
private void MakeChildAgent(ScenePresence avatar)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -748,7 +748,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
/// <param name="AgentId"></param>
|
||||
private void ClientLoggedOut(UUID AgentId, Scene scene)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -768,7 +768,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
/// <param name="regionID"></param>
|
||||
private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID)
|
||||
{
|
||||
|
||||
|
||||
//m_log.Info("[FRIEND]: " + avatar.Name + " status:" + (!avatar.IsChildAgent).ToString());
|
||||
}
|
||||
|
||||
@@ -809,12 +809,12 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
|
||||
Scene s = LocateSceneClientIn(remoteClient.AgentId);
|
||||
|
||||
// Implmenting base sale data checking here so the default OpenSimulator implementation isn't useless
|
||||
// Implmenting base sale data checking here so the default OpenSimulator implementation isn't useless
|
||||
// combined with other implementations. We're actually validating that the client is sending the data
|
||||
// that it should. In theory, the client should already know what to send here because it'll see it when it
|
||||
// gets the object data. If the data sent by the client doesn't match the object, the viewer probably has an
|
||||
// old idea of what the object properties are. Viewer developer Hazim informed us that the base module
|
||||
// didn't check the client sent data against the object do any. Since the base modules are the
|
||||
// gets the object data. If the data sent by the client doesn't match the object, the viewer probably has an
|
||||
// old idea of what the object properties are. Viewer developer Hazim informed us that the base module
|
||||
// didn't check the client sent data against the object do any. Since the base modules are the
|
||||
// 'crowning glory' examples of good practice..
|
||||
|
||||
// Validate that the object exists in the scene the user is in
|
||||
@@ -824,15 +824,15 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
remoteClient.SendAgentAlertMessage("Unable to buy now. The object was not found.", false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Validate that the client sent the price that the object is being sold for
|
||||
|
||||
// Validate that the client sent the price that the object is being sold for
|
||||
if (part.SalePrice != salePrice)
|
||||
{
|
||||
remoteClient.SendAgentAlertMessage("Cannot buy at this price. Buy Failed. If you continue to get this relog.", false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Validate that the client sent the proper sale type the object has set
|
||||
// Validate that the client sent the proper sale type the object has set
|
||||
if (part.ObjectSaleType != saleType)
|
||||
{
|
||||
remoteClient.SendAgentAlertMessage("Cannot buy this way. Buy Failed. If you continue to get this relog.", false);
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
}
|
||||
|
||||
public delegate void ChatToNPC(
|
||||
string message, byte type, Vector3 fromPos, string fromName,
|
||||
string message, byte type, Vector3 fromPos, string fromName,
|
||||
UUID fromAgentID, UUID ownerID, byte source, byte audible);
|
||||
|
||||
/// <summary>
|
||||
@@ -223,7 +223,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos,
|
||||
Quaternion SitOrientation, bool autopilot,
|
||||
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
||||
@@ -519,7 +519,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public event AvatarInterestUpdate OnAvatarInterestUpdate;
|
||||
|
||||
public event PlacesQuery OnPlacesQuery;
|
||||
|
||||
|
||||
public event FindAgentUpdate OnFindAgent;
|
||||
public event TrackAgentUpdate OnTrackAgent;
|
||||
public event NewUserReport OnUserReport;
|
||||
@@ -931,7 +931,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
OnRegionHandShakeReply(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)
|
||||
{
|
||||
}
|
||||
@@ -951,7 +951,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public void SendImageFirstPart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendImageNotFound(UUID imageid)
|
||||
{
|
||||
}
|
||||
@@ -959,7 +959,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public void SendImageNextPart(ushort partNumber, UUID imageUuid, byte[] imageData)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendShutdownConnectionNotice()
|
||||
{
|
||||
}
|
||||
@@ -970,7 +970,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
|
||||
public void SendObjectPropertiesFamilyData(ISceneEntity Entity, uint RequestFlags)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void SendObjectPropertiesReply(ISceneEntity entity)
|
||||
@@ -984,7 +984,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public void SendViewerEffect(ViewerEffectPacket.EffectBlock[] effectBlocks)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendViewerTime(int phase)
|
||||
{
|
||||
}
|
||||
@@ -1029,7 +1029,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
// We never start the client, so always fail.
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
@@ -1224,11 +1224,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public void SendJoinGroupReply(UUID groupID, bool success)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendEjectGroupMemberReply(UUID agentID, UUID groupID, bool success)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendLeaveGroupReply(UUID groupID, bool success)
|
||||
{
|
||||
}
|
||||
@@ -1318,7 +1318,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
public void SendRebakeAvatarTextures(UUID textureID)
|
||||
{
|
||||
}
|
||||
@@ -1326,15 +1326,15 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public void SendAvatarInterestsReply(UUID avatarID, uint wantMask, string wantText, uint skillsMask, string skillsText, string languages)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendGroupAccountingDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID, int amt)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendGroupAccountingSummary(IClientAPI sender,UUID groupID, uint moneyAmt, int totalTier, int usedTier)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendGroupTransactionsSummaryDetails(IClientAPI sender,UUID groupID, UUID transactionID, UUID sessionID,int amt)
|
||||
{
|
||||
}
|
||||
@@ -1354,7 +1354,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
public void SendTextBoxRequest(string message, int chatChannel, string objectname, UUID ownerID, string ownerFirstName, string ownerLastName, UUID objectId)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void SendAgentTerseUpdate(ISceneEntity presence)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -209,10 +209,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
|
||||
UserAccountHelpers.CreateUserWithInventory(m_scene, userId);
|
||||
ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, userId);
|
||||
|
||||
InventoryItemBase att1Item
|
||||
InventoryItemBase att1Item
|
||||
= UserInventoryHelpers.CreateInventoryItem(
|
||||
m_scene, "att1", TestHelpers.ParseTail(0x2), TestHelpers.ParseTail(0x3), sp.UUID, InventoryType.Object);
|
||||
InventoryItemBase att2Item
|
||||
InventoryItemBase att2Item
|
||||
= UserInventoryHelpers.CreateInventoryItem(
|
||||
m_scene, "att2", TestHelpers.ParseTail(0x12), TestHelpers.ParseTail(0x13), sp.UUID, InventoryType.Object);
|
||||
|
||||
|
||||
@@ -54,38 +54,38 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
private Scene m_scene;
|
||||
|
||||
public string Name { get { return "Scene Commands Module"; } }
|
||||
|
||||
|
||||
public Type ReplaceableInterface { get { return null; } }
|
||||
|
||||
|
||||
public void Initialise(IConfigSource source)
|
||||
{
|
||||
// m_log.DebugFormat("[SCENE COMMANDS MODULE]: INITIALIZED MODULE");
|
||||
}
|
||||
|
||||
|
||||
public void PostInitialise()
|
||||
{
|
||||
// m_log.DebugFormat("[SCENE COMMANDS MODULE]: POST INITIALIZED MODULE");
|
||||
}
|
||||
|
||||
|
||||
public void Close()
|
||||
{
|
||||
// m_log.DebugFormat("[SCENE COMMANDS MODULE]: CLOSED MODULE");
|
||||
}
|
||||
|
||||
|
||||
public void AddRegion(Scene scene)
|
||||
{
|
||||
// m_log.DebugFormat("[SCENE COMMANDS MODULE]: REGION {0} ADDED", scene.RegionInfo.RegionName);
|
||||
|
||||
m_scene = scene;
|
||||
|
||||
|
||||
m_scene.RegisterModuleInterface<ISceneCommandsModule>(this);
|
||||
}
|
||||
|
||||
|
||||
public void RemoveRegion(Scene scene)
|
||||
{
|
||||
// m_log.DebugFormat("[SCENE COMMANDS MODULE]: REGION {0} REMOVED", scene.RegionInfo.RegionName);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void RegionLoaded(Scene scene)
|
||||
{
|
||||
// m_log.DebugFormat("[ATTACHMENTS COMMAND MODULE]: REGION {0} LOADED", scene.RegionInfo.RegionName);
|
||||
@@ -101,7 +101,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
+ "client-rot-upd - the tolerance before clients are updated with new rotation information for an avatar.\n"
|
||||
+ "client-vel-upd - the tolerance before clients are updated with new velocity information for an avatar.\n"
|
||||
+ "root-upd-per - if greater than 1, terse updates are only sent to root agents other than the originator on every n updates.\n"
|
||||
+ "child-upd-per - if greater than 1, terse updates are only sent to child agents on every n updates.\n"
|
||||
+ "child-upd-per - if greater than 1, terse updates are only sent to child agents on every n updates.\n"
|
||||
+ "collisions - if false then collisions with other objects are turned off.\n"
|
||||
+ "pbackup - if false then periodic scene backup is turned off.\n"
|
||||
+ "physics - if false then all physics objects are non-physical.\n"
|
||||
@@ -213,7 +213,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
|
||||
// FIXME: This can only come from the console at the moment but might not always be true.
|
||||
if (ConsoleUtil.TryParseConsoleBool(MainConsole.Instance, options["appear-refresh"], out newValue))
|
||||
m_scene.SendPeriodicAppearanceUpdates = newValue;
|
||||
m_scene.SendPeriodicAppearanceUpdates = newValue;
|
||||
}
|
||||
|
||||
if (options.ContainsKey("client-pos-upd"))
|
||||
@@ -222,7 +222,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
|
||||
// FIXME: This can only come from the console at the moment but might not always be true.
|
||||
if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-pos-upd"], out newValue))
|
||||
m_scene.RootPositionUpdateTolerance = newValue;
|
||||
m_scene.RootPositionUpdateTolerance = newValue;
|
||||
}
|
||||
|
||||
if (options.ContainsKey("client-rot-upd"))
|
||||
@@ -231,7 +231,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
|
||||
// FIXME: This can only come from the console at the moment but might not always be true.
|
||||
if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-rot-upd"], out newValue))
|
||||
m_scene.RootRotationUpdateTolerance = newValue;
|
||||
m_scene.RootRotationUpdateTolerance = newValue;
|
||||
}
|
||||
|
||||
if (options.ContainsKey("client-vel-upd"))
|
||||
@@ -240,7 +240,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
|
||||
// FIXME: This can only come from the console at the moment but might not always be true.
|
||||
if (ConsoleUtil.TryParseConsoleFloat(MainConsole.Instance, options["client-vel-upd"], out newValue))
|
||||
m_scene.RootVelocityUpdateTolerance = newValue;
|
||||
m_scene.RootVelocityUpdateTolerance = newValue;
|
||||
}
|
||||
|
||||
if (options.ContainsKey("root-upd-per"))
|
||||
@@ -249,7 +249,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
|
||||
// FIXME: This can only come from the console at the moment but might not always be true.
|
||||
if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, options["root-upd-per"], out newValue))
|
||||
m_scene.RootTerseUpdatePeriod = newValue;
|
||||
m_scene.RootTerseUpdatePeriod = newValue;
|
||||
}
|
||||
|
||||
if (options.ContainsKey("child-upd-per"))
|
||||
@@ -258,7 +258,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
|
||||
|
||||
// FIXME: This can only come from the console at the moment but might not always be true.
|
||||
if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, options["child-upd-per"], out newValue))
|
||||
m_scene.ChildTerseUpdatePeriod = newValue;
|
||||
m_scene.ChildTerseUpdatePeriod = newValue;
|
||||
}
|
||||
|
||||
if (options.ContainsKey("pbackup"))
|
||||
|
||||
@@ -45,7 +45,7 @@ using System.IO;
|
||||
namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
{
|
||||
/// <summary>
|
||||
/// Version 2.02 - Still hacky
|
||||
/// Version 2.02 - Still hacky
|
||||
/// </summary>
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "TreePopulatorModule")]
|
||||
public class TreePopulatorModule : INonSharedRegionModule, ICommandableModule, IVegetationModule
|
||||
@@ -60,7 +60,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
public string m_name;
|
||||
public Boolean m_frozen;
|
||||
public Tree m_tree_type;
|
||||
public int m_tree_quantity;
|
||||
public int m_tree_quantity;
|
||||
public float m_treeline_low;
|
||||
public float m_treeline_high;
|
||||
public Vector3 m_seed_point;
|
||||
@@ -78,7 +78,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
{
|
||||
}
|
||||
|
||||
public Copse(string fileName, Boolean planted)
|
||||
public Copse(string fileName, Boolean planted)
|
||||
{
|
||||
Copse cp = (Copse)DeserializeObject(fileName);
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
{
|
||||
string frozen = (this.m_frozen ? "F" : "A");
|
||||
|
||||
return string.Format("{0}TPM: {1}; {2}; {3:0.0}; {4:0.0}; {5:0.0}; {6}; {7:0.0}; {8:0.0}; {9:0.0}; {10:0.00};",
|
||||
return string.Format("{0}TPM: {1}; {2}; {3:0.0}; {4:0.0}; {5:0.0}; {6}; {7:0.0}; {8:0.0}; {9:0.0}; {10:0.00};",
|
||||
frozen,
|
||||
this.m_name,
|
||||
this.m_tree_quantity,
|
||||
@@ -156,7 +156,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
|
||||
private List<Copse> m_copse;
|
||||
|
||||
private double m_update_ms = 1000.0; // msec between updates
|
||||
private double m_update_ms = 1000.0; // msec between updates
|
||||
private bool m_active_trees = false;
|
||||
|
||||
Timer CalculateTrees;
|
||||
@@ -174,7 +174,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
|
||||
public void Initialise(IConfigSource config)
|
||||
{
|
||||
|
||||
|
||||
// ini file settings
|
||||
try
|
||||
{
|
||||
@@ -621,11 +621,11 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
CalculateTrees.Elapsed += CalculateTrees_Elapsed;
|
||||
CalculateTrees.Start();
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
CalculateTrees.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void growTrees()
|
||||
{
|
||||
@@ -670,7 +670,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator
|
||||
if (copse.m_trees.Count < copse.m_tree_quantity)
|
||||
{
|
||||
// Tree has grown enough to seed if it has grown by at least 25% of seeded to full grown height
|
||||
if (s_tree.Scale.Z > copse.m_initial_scale.Z + (copse.m_maximum_scale.Z - copse.m_initial_scale.Z) / 4.0)
|
||||
if (s_tree.Scale.Z > copse.m_initial_scale.Z + (copse.m_maximum_scale.Z - copse.m_initial_scale.Z) / 4.0)
|
||||
{
|
||||
if (Util.RandomClass.NextDouble() > 0.75)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user