1234567891011121314151617181920212223242526272829303132 |
- 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!");
- }
- }
- }
|