mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
add some comments about the async dataserver async action
This commit is contained in:
@@ -4965,7 +4965,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.PassTouches = false;
|
||||
}
|
||||
|
||||
// THIS IS WRONG, must be async
|
||||
public LSL_Key llRequestAgentData(string id, int data)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
@@ -82,6 +82,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
public Action<string> action;
|
||||
}
|
||||
|
||||
// action, if provided, is executed async
|
||||
// its code pattern should be:
|
||||
//Action<string> act = eventID =>
|
||||
//{
|
||||
// need operations to get reply string
|
||||
// m_AsyncCommands.DataserverPlugin.DataserverReply(eventID, reply);
|
||||
//}
|
||||
// eventID is the event id, provided by this on Invoque
|
||||
// see ProcessActions below
|
||||
|
||||
public UUID RegisterRequest(uint localID, UUID itemID,
|
||||
string identifier, Action<string> action = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user