[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
47 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|