* Minor: get CreateNewUserInventory() to return true on success
parent
f2d36186f0
commit
ba132f3a0b
|
@ -66,10 +66,11 @@ namespace OpenSim.Framework.Communications
|
||||||
void DeleteInventoryItem(LLUUID userID, InventoryItemBase item);
|
void DeleteInventoryItem(LLUUID userID, InventoryItemBase item);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new inventory for the given user
|
/// Create a new inventory for the given user.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user"></param>
|
/// <param name="user"></param>
|
||||||
void CreateNewUserInventory(LLUUID user);
|
/// <returns>true if the inventory was successfully created, false otherwise</returns>
|
||||||
|
bool CreateNewUserInventory(LLUUID user);
|
||||||
|
|
||||||
bool HasInventoryForUser(LLUUID userID);
|
bool HasInventoryForUser(LLUUID userID);
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ namespace OpenSim.Framework.Communications
|
||||||
}
|
}
|
||||||
|
|
||||||
// See IInventoryServices
|
// See IInventoryServices
|
||||||
public void CreateNewUserInventory(LLUUID user)
|
public bool CreateNewUserInventory(LLUUID user)
|
||||||
{
|
{
|
||||||
InventoryFolderBase existingRootFolder = RequestRootFolder(user);
|
InventoryFolderBase existingRootFolder = RequestRootFolder(user);
|
||||||
|
|
||||||
|
@ -151,7 +151,11 @@ namespace OpenSim.Framework.Communications
|
||||||
UsersInventory inven = new UsersInventory();
|
UsersInventory inven = new UsersInventory();
|
||||||
inven.CreateNewInventorySet(user);
|
inven.CreateNewInventorySet(user);
|
||||||
AddNewInventorySet(inven);
|
AddNewInventorySet(inven);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack,
|
public abstract void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack,
|
||||||
|
|
|
@ -208,8 +208,9 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CreateNewUserInventory(LLUUID user)
|
public bool CreateNewUserInventory(LLUUID user)
|
||||||
{
|
{
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// See IInventoryServices
|
// See IInventoryServices
|
||||||
|
|
Loading…
Reference in New Issue