mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
* Updates LSL2CS converter
* All objects are not touchable by default now * When a script listens for one of the touch events in the state, an object becomes touchable. * All LSL scripts report which events they consume now ** This uses semi-complicated Regex to discover the events, stick them in a dictionary, and then write a method call into each script state's state_entry() event. ** Tedd may figure out a better way to do this in the future. For now, this works for LSL.
This commit is contained in:
@@ -1990,6 +1990,10 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
return m_LSL_Functions.osDrawImage(drawList, width, height, imageUrl);
|
||||
}
|
||||
|
||||
public void osSetStateEvents(int events)
|
||||
{
|
||||
m_LSL_Functions.osSetStateEvents(events);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
|
||||
@@ -5597,6 +5597,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
return drawList;
|
||||
}
|
||||
|
||||
public void osSetStateEvents(int events)
|
||||
{
|
||||
m_host.setScriptEvents(m_itemID,events);
|
||||
}
|
||||
|
||||
private void NotImplemented(string command)
|
||||
{
|
||||
if (throwErrorOnNotImplemented)
|
||||
|
||||
@@ -669,5 +669,6 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
string osSetPenSize(string drawList, int penSize);
|
||||
string osSetPenColour(string drawList, string colour);
|
||||
string osDrawImage(string drawList, int width, int height, string imageUrl);
|
||||
void osSetStateEvents(int events);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user