aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Scripting/ScriptAccess.cs
blob: a9fede5739ea5e984624d9e0674172e72ad26b6f (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
30
31
using System;
using System.Collections.Generic;
using System.Text;

using OpenSim.Region.Scenes;
using OpenSim.Framework.Console;

namespace OpenSim.Scripting
{
    /// <summary>
    /// Class which provides access to the world
    /// </summary>
    public class ScriptInfo
    {
        // Reference to world.eventsManager provided for convenience
        public EventManager events;

        // The main world
        public Scene world;

        // The console
        public LogBase logger;

        public ScriptInfo(Scene scene)
        {
            world = scene;
            events = world.eventManager;
            logger = OpenSim.Framework.Console.MainLog.Instance;
        }
    }
}