Minor spelling corrections in MiniModule: "RetreiveAsset" changed to

"RetrieveAsset" and 'm_rootSceene' to m_rootScene'.
slimupdates
unknown 2010-04-25 10:13:13 +03:00 committed by AlexRa
parent 423ff3b94b
commit fb7458be31
2 changed files with 5 additions and 5 deletions

View File

@ -39,6 +39,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{ {
int Type { get; } int Type { get; }
UUID AssetID { get; } UUID AssetID { get; }
T RetreiveAsset<T>() where T : Asset, new(); T RetrieveAsset<T>() where T : Asset, new();
} }
} }

View File

@ -39,11 +39,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
public class InventoryItem : IInventoryItem public class InventoryItem : IInventoryItem
{ {
TaskInventoryItem m_privateItem; TaskInventoryItem m_privateItem;
Scene m_rootSceene; Scene m_rootScene;
public InventoryItem(Scene rootScene, TaskInventoryItem internalItem) public InventoryItem(Scene rootScene, TaskInventoryItem internalItem)
{ {
m_rootSceene = rootScene; m_rootScene = rootScene;
m_privateItem = internalItem; m_privateItem = internalItem;
} }
@ -82,9 +82,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
public UUID AssetID { get { return m_privateItem.AssetID; } } public UUID AssetID { get { return m_privateItem.AssetID; } }
// This method exposes OpenSim/OpenMetaverse internals and needs to be replaced with a IAsset specific to MRM. // This method exposes OpenSim/OpenMetaverse internals and needs to be replaced with a IAsset specific to MRM.
public T RetreiveAsset<T>() where T : OpenMetaverse.Assets.Asset, new() public T RetrieveAsset<T>() where T : OpenMetaverse.Assets.Asset, new()
{ {
AssetBase a = m_rootSceene.AssetService.Get(AssetID.ToString()); AssetBase a = m_rootScene.AssetService.Get(AssetID.ToString());
T result = new T(); T result = new T();
if ((sbyte)result.AssetType != a.Type) if ((sbyte)result.AssetType != a.Type)