let changed allowed drop have lldetectedkey[0] return the dropped item id, Yengine and still testing"

This commit is contained in:
UbitUmarov
2019-02-21 22:54:17 +00:00
parent b7507b70bc
commit ece3843798
5 changed files with 22 additions and 9 deletions

View File

@@ -215,7 +215,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
det));
}
public void changed(uint localID, uint change)
public void changed(uint localID, uint change, object parameter)
{
// Add to queue for all scripts in localID, Object pass change.
myScriptEngine.PostObjectEvent(localID, new EventParams(

View File

@@ -182,13 +182,26 @@ namespace OpenSim.Region.ScriptEngine.Yengine
new DetectParams[] { det }));
}
public void changed(uint localID, uint change)
public void changed(uint localID, uint change, object data)
{
int ch = (int)change;
// Add to queue for all scripts in localID, Object pass change.
this.PostObjectEvent(localID, new EventParams(
if(data == null)
{
PostObjectEvent(localID, new EventParams(
"changed", new object[] { ch },
zeroDetectParams));
return;
}
if ( data is UUID)
{
DetectParams det = new DetectParams();
det.Key = (UUID)data;
PostObjectEvent(localID, new EventParams(
"changed", new object[] { ch },
new DetectParams[] { det }));
return;
}
}
// state_entry: not processed here