mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
* Added new scripting related events, in particular a new event which is triggered by console commands so that the script can subscribe to console messages and operate when they occur.
* Added new example script (work in progress) * Fixed typo in Scripting engines for C# and JScript.NET
This commit is contained in:
@@ -25,6 +25,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public delegate void OnParcelPrimCountAddDelegate(SceneObject obj);
|
||||
public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
|
||||
|
||||
public delegate void OnScriptConsoleDelegate(string[] args);
|
||||
public event OnScriptConsoleDelegate OnScriptConsole;
|
||||
|
||||
public void TriggerOnScriptConsole(string[] args)
|
||||
{
|
||||
if (OnScriptConsole != null)
|
||||
OnScriptConsole(args);
|
||||
}
|
||||
|
||||
public void TriggerOnFrame()
|
||||
{
|
||||
if (OnFrame != null)
|
||||
|
||||
Reference in New Issue
Block a user