aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local/LocalUserServices.cs
diff options
context:
space:
mode:
authorlbsa712007-10-02 00:00:12 +0000
committerlbsa712007-10-02 00:00:12 +0000
commitb5eaea7b0c627c55544f4099b50e9ac1a504fe17 (patch)
tree5104246df864943f368d5a4ddc88d5101c3155b8 /OpenSim/Region/Communications/Local/LocalUserServices.cs
parentremoved debug statements (diff)
downloadopensim-SC_OLD-b5eaea7b0c627c55544f4099b50e9ac1a504fe17.zip
opensim-SC_OLD-b5eaea7b0c627c55544f4099b50e9ac1a504fe17.tar.gz
opensim-SC_OLD-b5eaea7b0c627c55544f4099b50e9ac1a504fe17.tar.bz2
opensim-SC_OLD-b5eaea7b0c627c55544f4099b50e9ac1a504fe17.tar.xz
* Moved setup of LocalInventoryService and LocalUserServices to the app layer
* Killed off 'parent' relation from LocalUserServices to CommunicationsLocal * Deleted obsolete project InventoryServiceBase * Deleted superfluous createCol function
Diffstat (limited to 'OpenSim/Region/Communications/Local/LocalUserServices.cs')
-rw-r--r--OpenSim/Region/Communications/Local/LocalUserServices.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index 3bc4301..9e81fb8 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -8,20 +8,20 @@ namespace OpenSim.Region.Communications.Local
8{ 8{
9 public class LocalUserServices : UserManagerBase 9 public class LocalUserServices : UserManagerBase
10 { 10 {
11 private readonly CommunicationsLocal m_parent;
12
13 private readonly NetworkServersInfo m_serversInfo; 11 private readonly NetworkServersInfo m_serversInfo;
14 private readonly uint m_defaultHomeX; 12 private readonly uint m_defaultHomeX;
15 private readonly uint m_defaultHomeY; 13 private readonly uint m_defaultHomeY;
14 private IInventoryServices m_inventoryService;
16 15
17 16
18 public LocalUserServices(CommunicationsLocal parent, NetworkServersInfo serversInfo) 17 public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY, IInventoryServices inventoryService)
19 { 18 {
20 m_parent = parent;
21 m_serversInfo = serversInfo; 19 m_serversInfo = serversInfo;
22 20
23 m_defaultHomeX = m_serversInfo.DefaultHomeLocX; 21 m_defaultHomeX = defaultHomeLocX;
24 m_defaultHomeY = m_serversInfo.DefaultHomeLocY; 22 m_defaultHomeY = defaultHomeLocY;
23
24 m_inventoryService = inventoryService;
25 } 25 }
26 26
27 public override UserProfileData SetupMasterUser(string firstName, string lastName) 27 public override UserProfileData SetupMasterUser(string firstName, string lastName)
@@ -48,7 +48,7 @@ namespace OpenSim.Region.Communications.Local
48 } 48 }
49 else 49 else
50 { 50 {
51 m_parent.InventoryService.CreateNewUserInventory(profile.UUID); 51 m_inventoryService.CreateNewUserInventory(profile.UUID);
52 } 52 }
53 53
54 return profile; 54 return profile;