mirror of
https://github.com/opensim/opensim.git
synced 2026-06-06 02:55:47 +08:00
Some work on restructuring the namespaces / project names. Note this doesn't compile yet as not all the code has been changed to use the new namespaces. Am committing it now for feedback on the namespaces.
This commit is contained in:
31
OpenSim/Region/Scripting/ScriptAccess.cs
Normal file
31
OpenSim/Region/Scripting/ScriptAccess.cs
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user