mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Instead of constantly looking up unchanging self item in script code, pass in self item on initialization.
This commit is contained in:
@@ -27,17 +27,23 @@
|
||||
|
||||
using System;
|
||||
using OpenMetaverse;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.Interfaces
|
||||
{
|
||||
public interface IScriptApi
|
||||
{
|
||||
//
|
||||
// Each API has an identifier, which is used to load the
|
||||
// proper runtime assembly at load time.
|
||||
//
|
||||
void Initialize(IScriptEngine engine, SceneObjectPart part, uint localID, UUID item);
|
||||
/// <summary>
|
||||
/// Initialize the API
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Each API has an identifier, which is used to load the
|
||||
/// proper runtime assembly at load time.
|
||||
/// <param name='engine'>/param>
|
||||
/// <param name='part'></param>
|
||||
/// <param name='localID'></param>
|
||||
/// <param name='item'></param>
|
||||
void Initialize(IScriptEngine engine, SceneObjectPart part, uint localID, TaskInventoryItem item);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user