mirror of
https://github.com/opensim/opensim.git
synced 2026-05-27 20:35:59 +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:
32
OpenSim/Region/Scripting/Script.cs
Normal file
32
OpenSim/Region/Scripting/Script.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
using OpenSim.Framework.Console;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Region;
|
||||
using OpenSim.Region.Scenes;
|
||||
|
||||
namespace OpenSim.Scripting
|
||||
{
|
||||
public interface IScript
|
||||
{
|
||||
void Initialise(ScriptInfo scriptInfo);
|
||||
}
|
||||
|
||||
public class TestScript : IScript
|
||||
{
|
||||
ScriptInfo script;
|
||||
|
||||
public void Initialise(ScriptInfo scriptInfo)
|
||||
{
|
||||
script = scriptInfo;
|
||||
script.events.OnFrame += new OpenSim.Region.Scenes.EventManager.OnFrameDelegate(events_OnFrame);
|
||||
}
|
||||
|
||||
void events_OnFrame()
|
||||
{
|
||||
script.logger.Verbose("Hello World!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user