* Commiting new "SceneEvents" class - a single class which contains bindable events for common things, which can later be passed to the scripting engine.
Events being things like OnFrame / OnNewViewer, etc.Sugilite
parent
f600fec134
commit
f1c03604c9
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenSim.Region.Scenes
|
||||
{
|
||||
/// <summary>
|
||||
/// A class for triggering remote scene events.
|
||||
/// </summary>
|
||||
class SceneEvents
|
||||
{
|
||||
public delegate void OnFrameDelegate();
|
||||
public event OnFrameDelegate OnFrame;
|
||||
|
||||
public delegate void OnNewViewerDelegate();
|
||||
public event OnNewViewerDelegate OnNewViewer;
|
||||
|
||||
public delegate void OnNewPrimitiveDelegate();
|
||||
public event OnNewPrimitiveDelegate OnNewPrimitive;
|
||||
|
||||
public void TriggerOnFrame()
|
||||
{
|
||||
if (OnFrame != null)
|
||||
{
|
||||
OnFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue