Files
libremetaverse/Programs/Simian/SceneExtensions/TaskInventoryManager.cs
John Hurliman c20afbbf80 * Added InventoryItemFlags, which is actually only the upper half of the Flags field for inventory items. Stores slam bits, permission override flags, and other things we don't use at all right now
[Simian]
* Initial task inventory support. Move, remove, and RezScript are not supported yet
* SimulationObject Frozen and RotationAxis properties now point to the root prim in the linkset

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2503 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-19 00:25:03 +00:00

47 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using ExtensionLoader;
using OpenMetaverse;
using OpenMetaverse.Packets;
namespace Simian
{
// FIXME: Implement this class
class TaskInventoryManager : IExtension<ISceneProvider>, ITaskInventoryProvider
{
ISceneProvider scene;
Dictionary<string, byte[]> assets = new Dictionary<string, byte[]>();
public TaskInventoryManager()
{
}
public bool Start(ISceneProvider scene)
{
this.scene = scene;
return true;
}
public void Stop()
{
}
public void AddTaskFile(string filename, byte[] assetData)
{
lock (assets)
assets[filename] = assetData;
}
public bool RemoveTaskFile(string filename)
{
lock (assets)
return assets.Remove(filename);
}
public bool TryGetTaskFile(string filename, out byte[] assetData)
{
return assets.TryGetValue(filename, out assetData);
}
}
}