* 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
Adam Frisby 2007-06-27 05:52:48 +00:00
parent f600fec134
commit f1c03604c9
1 changed files with 29 additions and 0 deletions

View File

@ -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();
}
}
}
}