let Xengine also have that detectedkey
parent
bd27573130
commit
5d78f52f7b
|
@ -218,9 +218,22 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
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(
|
||||
"changed",new object[] { new LSL_Types.LSLInteger(change) },
|
||||
if(parameter == null)
|
||||
{
|
||||
myScriptEngine.PostObjectEvent(localID, new EventParams(
|
||||
"changed", new object[] { new LSL_Types.LSLInteger(change) },
|
||||
new DetectParams[0]));
|
||||
return;
|
||||
}
|
||||
if (parameter is UUID)
|
||||
{
|
||||
DetectParams det = new DetectParams();
|
||||
det.Key = (UUID)parameter;
|
||||
myScriptEngine.PostObjectEvent(localID, new EventParams(
|
||||
"changed", new object[] { new LSL_Types.LSLInteger(change) },
|
||||
new DetectParams[] { det }));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// state_entry: not processed here
|
||||
|
|
|
@ -182,21 +182,21 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
|||
new DetectParams[] { det }));
|
||||
}
|
||||
|
||||
public void changed(uint localID, uint change, object data)
|
||||
public void changed(uint localID, uint change, object parameter)
|
||||
{
|
||||
int ch = (int)change;
|
||||
// Add to queue for all scripts in localID, Object pass change.
|
||||
if(data == null)
|
||||
if(parameter == null)
|
||||
{
|
||||
PostObjectEvent(localID, new EventParams(
|
||||
"changed", new object[] { ch },
|
||||
zeroDetectParams));
|
||||
return;
|
||||
}
|
||||
if ( data is UUID)
|
||||
if ( parameter is UUID)
|
||||
{
|
||||
DetectParams det = new DetectParams();
|
||||
det.Key = (UUID)data;
|
||||
det.Key = (UUID)parameter;
|
||||
PostObjectEvent(localID, new EventParams(
|
||||
"changed", new object[] { ch },
|
||||
new DetectParams[] { det }));
|
||||
|
|
Loading…
Reference in New Issue