Add an event and some logic to allow customizing Simulator Features by avatar

This commit is contained in:
Melanie
2013-02-14 08:40:15 +01:00
parent 69d0e168fb
commit ef662fc959
2 changed files with 26 additions and 5 deletions

View File

@@ -26,18 +26,22 @@
*/
using System;
using OpenMetaverse;
using OpenMetaverse.StructuredData;
namespace OpenSim.Region.Framework.Interfaces
{
public delegate void SimulatorFeaturesRequestDelegate(UUID agentID, ref OSDMap features);
/// <summary>
/// Add remove or retrieve Simulator Features that will be given to a viewer via the SimulatorFeatures capability.
/// </summary>
public interface ISimulatorFeaturesModule
{
event SimulatorFeaturesRequestDelegate OnSimulatorFeaturesRequest;
void AddFeature(string name, OSD value);
bool RemoveFeature(string name);
bool TryGetFeature(string name, out OSD value);
OSDMap GetFeatures();
}
}
}