mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* Brand spankin' new scripting engine.
* Use "script load somefile.cs" for C# scripting. Will commit additional languages shortly. Scripts should implement the IScript interfaces to work correctly. * Someone port this over to NameSpaceChanges (built in Sugilite since sugilite is working)
This commit is contained in:
31
OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.cs
Normal file
31
OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.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