diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/World')
4 files changed, 115 insertions, 108 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs index 2db718c..f9e118b 100644 --- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs +++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModuleState.cs | |||
@@ -23,104 +23,104 @@ | |||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | 30 | ||
31 | 31 | ||
32 | namespace OpenSim.Region.OptionalModules.World.AutoBackup | 32 | namespace OpenSim.Region.OptionalModules.World.AutoBackup |
33 | { | 33 | { |
34 | /// <summary>AutoBackupModuleState: Auto-Backup state for one region (scene). | 34 | /// <summary>AutoBackupModuleState: Auto-Backup state for one region (scene). |
35 | /// If you use this class in any way outside of AutoBackupModule, you should treat the class as opaque. | 35 | /// If you use this class in any way outside of AutoBackupModule, you should treat the class as opaque. |
36 | /// Since it is not part of the framework, you really should not rely upon it outside of the AutoBackupModule implementation. | 36 | /// Since it is not part of the framework, you really should not rely upon it outside of the AutoBackupModule implementation. |
37 | /// </summary> | 37 | /// </summary> |
38 | /// | 38 | /// |
39 | public class AutoBackupModuleState | 39 | public class AutoBackupModuleState |
40 | { | 40 | { |
41 | private Dictionary<Guid, string> m_liveRequests = null; | 41 | private Dictionary<Guid, string> m_liveRequests = null; |
42 | 42 | ||
43 | public AutoBackupModuleState() | 43 | public AutoBackupModuleState() |
44 | { | 44 | { |
45 | this.Enabled = false; | 45 | this.Enabled = false; |
46 | this.BackupDir = "."; | 46 | this.BackupDir = "."; |
47 | this.BusyCheck = true; | 47 | this.BusyCheck = true; |
48 | this.Timer = null; | 48 | this.Timer = null; |
49 | this.NamingType = NamingType.Time; | 49 | this.NamingType = NamingType.Time; |
50 | this.Script = null; | 50 | this.Script = null; |
51 | } | 51 | } |
52 | 52 | ||
53 | public Dictionary<Guid, string> LiveRequests | 53 | public Dictionary<Guid, string> LiveRequests |
54 | { | 54 | { |
55 | get { | 55 | get { |
56 | return this.m_liveRequests ?? | 56 | return this.m_liveRequests ?? |
57 | (this.m_liveRequests = new Dictionary<Guid, string>(1)); | 57 | (this.m_liveRequests = new Dictionary<Guid, string>(1)); |
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | public bool Enabled | 61 | public bool Enabled |
62 | { | 62 | { |
63 | get; | 63 | get; |
64 | set; | 64 | set; |
65 | } | 65 | } |
66 | 66 | ||
67 | public System.Timers.Timer Timer | 67 | public System.Timers.Timer Timer |
68 | { | 68 | { |
69 | get; | 69 | get; |
70 | set; | 70 | set; |
71 | } | 71 | } |
72 | 72 | ||
73 | public double IntervalMinutes | 73 | public double IntervalMinutes |
74 | { | 74 | { |
75 | get | 75 | get |
76 | { | 76 | { |
77 | if (this.Timer == null) | 77 | if (this.Timer == null) |
78 | { | 78 | { |
79 | return -1.0; | 79 | return -1.0; |
80 | } | 80 | } |
81 | else | 81 | else |
82 | { | 82 | { |
83 | return this.Timer.Interval / 60000.0; | 83 | return this.Timer.Interval / 60000.0; |
84 | } | 84 | } |
85 | } | 85 | } |
86 | } | 86 | } |
87 | 87 | ||
88 | public bool BusyCheck | 88 | public bool BusyCheck |
89 | { | 89 | { |
90 | get; | 90 | get; |
91 | set; | 91 | set; |
92 | } | 92 | } |
93 | 93 | ||
94 | public string Script | 94 | public string Script |
95 | { | 95 | { |
96 | get; | 96 | get; |
97 | set; | 97 | set; |
98 | } | 98 | } |
99 | 99 | ||
100 | public string BackupDir | 100 | public string BackupDir |
101 | { | 101 | { |
102 | get; | 102 | get; |
103 | set; | 103 | set; |
104 | } | 104 | } |
105 | 105 | ||
106 | public NamingType NamingType | 106 | public NamingType NamingType |
107 | { | 107 | { |
108 | get; | 108 | get; |
109 | set; | 109 | set; |
110 | } | 110 | } |
111 | 111 | ||
112 | public new string ToString() | 112 | public new string ToString() |
113 | { | 113 | { |
114 | string retval = ""; | 114 | string retval = ""; |
115 | 115 | ||
116 | retval += "[AUTO BACKUP]: AutoBackup: " + (Enabled ? "ENABLED" : "DISABLED") + "\n"; | 116 | retval += "[AUTO BACKUP]: AutoBackup: " + (Enabled ? "ENABLED" : "DISABLED") + "\n"; |
117 | retval += "[AUTO BACKUP]: Interval: " + IntervalMinutes + " minutes" + "\n"; | 117 | retval += "[AUTO BACKUP]: Interval: " + IntervalMinutes + " minutes" + "\n"; |
118 | retval += "[AUTO BACKUP]: Do Busy Check: " + (BusyCheck ? "Yes" : "No") + "\n"; | 118 | retval += "[AUTO BACKUP]: Do Busy Check: " + (BusyCheck ? "Yes" : "No") + "\n"; |
119 | retval += "[AUTO BACKUP]: Naming Type: " + NamingType.ToString() + "\n"; | 119 | retval += "[AUTO BACKUP]: Naming Type: " + NamingType.ToString() + "\n"; |
120 | retval += "[AUTO BACKUP]: Backup Dir: " + BackupDir + "\n"; | 120 | retval += "[AUTO BACKUP]: Backup Dir: " + BackupDir + "\n"; |
121 | retval += "[AUTO BACKUP]: Script: " + Script + "\n"; | 121 | retval += "[AUTO BACKUP]: Script: " + Script + "\n"; |
122 | return retval; | 122 | return retval; |
123 | } | 123 | } |
124 | } | 124 | } |
125 | } | 125 | } |
126 | 126 | ||
diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs index b84a34d..d469548 100644 --- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs +++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs | |||
@@ -838,6 +838,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule | |||
838 | if (module != null) | 838 | if (module != null) |
839 | module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); | 839 | module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); |
840 | } | 840 | } |
841 | |||
842 | public void MoveMoney(UUID fromAgentID, UUID toAgentID, int amount, string text) | ||
843 | { | ||
844 | } | ||
841 | } | 845 | } |
842 | 846 | ||
843 | public enum TransactionType : int | 847 | public enum TransactionType : int |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 31e79fa..4f831a4 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -162,7 +162,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
162 | #pragma warning disable 67 | 162 | #pragma warning disable 67 |
163 | public event Action<IClientAPI> OnLogout; | 163 | public event Action<IClientAPI> OnLogout; |
164 | public event ObjectPermissions OnObjectPermissions; | 164 | public event ObjectPermissions OnObjectPermissions; |
165 | 165 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | |
166 | public event MoneyTransferRequest OnMoneyTransferRequest; | 166 | public event MoneyTransferRequest OnMoneyTransferRequest; |
167 | public event ParcelBuy OnParcelBuy; | 167 | public event ParcelBuy OnParcelBuy; |
168 | public event Action<IClientAPI> OnConnectionClosed; | 168 | public event Action<IClientAPI> OnConnectionClosed; |
@@ -366,7 +366,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
366 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 366 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
367 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 367 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
368 | public event ClassifiedDelete OnClassifiedDelete; | 368 | public event ClassifiedDelete OnClassifiedDelete; |
369 | public event ClassifiedDelete OnClassifiedGodDelete; | 369 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
370 | 370 | ||
371 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 371 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
372 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 372 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
@@ -525,7 +525,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
525 | 525 | ||
526 | } | 526 | } |
527 | 527 | ||
528 | public virtual void SendKillObject(ulong regionHandle, uint localID) | 528 | public virtual void SendKillObject(ulong regionHandle, List<uint> localID) |
529 | { | 529 | { |
530 | } | 530 | } |
531 | 531 | ||
@@ -842,8 +842,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
842 | 842 | ||
843 | public void Close() | 843 | public void Close() |
844 | { | 844 | { |
845 | // Remove ourselves from the scene | 845 | Close(true); |
846 | m_scene.RemoveClient(AgentId, false); | 846 | } |
847 | |||
848 | public void Close(bool sendStop) | ||
849 | { | ||
847 | } | 850 | } |
848 | 851 | ||
849 | public void Start() | 852 | public void Start() |
diff --git a/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs b/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs index feca7d3..38c2f7b 100644 --- a/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs +++ b/OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs | |||
@@ -385,7 +385,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
385 | m_scene.ForEachClient(delegate(IClientAPI controller) | 385 | m_scene.ForEachClient(delegate(IClientAPI controller) |
386 | { | 386 | { |
387 | controller.SendKillObject(m_scene.RegionInfo.RegionHandle, | 387 | controller.SendKillObject(m_scene.RegionInfo.RegionHandle, |
388 | selectedTree.LocalId); | 388 | new List<uint>() { selectedTree.LocalId }); |
389 | }); | 389 | }); |
390 | } | 390 | } |
391 | else | 391 | else |
@@ -726,7 +726,7 @@ namespace OpenSim.Region.OptionalModules.World.TreePopulator | |||
726 | m_scene.ForEachClient(delegate(IClientAPI controller) | 726 | m_scene.ForEachClient(delegate(IClientAPI controller) |
727 | { | 727 | { |
728 | controller.SendKillObject(m_scene.RegionInfo.RegionHandle, | 728 | controller.SendKillObject(m_scene.RegionInfo.RegionHandle, |
729 | selectedTree.LocalId); | 729 | new List<uint>() { selectedTree.LocalId }); |
730 | }); | 730 | }); |
731 | 731 | ||
732 | break; | 732 | break; |