aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Region/Scenes/SceneEvents.cs
blob: 2b3348ae82273c526644da97b499dcab5c2fd94c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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();
            }
        }
    }
}