29 using System.Threading;
30 using System.Reflection;
31 using System.Collections;
32 using System.Collections.Generic;
33 using System.Runtime.Remoting.Lifetime;
37 using OpenSim.Framework;
38 using OpenSim.Region.CoreModules.World.LightShare;
39 using OpenSim.Region.Framework.Interfaces;
40 using OpenSim.Region.Framework.Scenes;
41 using OpenSim.Region.ScriptEngine.Shared;
42 using OpenSim.Region.ScriptEngine.Shared.Api.Plugins;
43 using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
44 using OpenSim.Region.ScriptEngine.Interfaces;
45 using OpenSim.Region.ScriptEngine.Shared.Api.Interfaces;
46 using OpenSim.Services.Interfaces;
64 internal bool m_CMFunctionsEnabled =
false;
68 m_ScriptEngine = ScriptEngine;
72 if (m_ScriptEngine.Config.GetBoolean(
"AllowCareminsterFunctions",
false))
73 m_CMFunctionsEnabled =
true;
78 ILease lease = (ILease)base.InitializeLifetimeService();
80 if (lease.CurrentState == LeaseState.Initial)
82 lease.InitialLeaseTime = TimeSpan.FromMinutes(0);
91 get {
return m_ScriptEngine.World; }
96 m_host.AddScriptLPS(1);
97 DetectParams detectedParams = m_ScriptEngine.GetDetectParams(m_item.ItemID, number);
98 if (detectedParams == null)
100 return detectedParams.Country;
105 if (!
World.Permissions.IsGod(m_host.OwnerID))
110 if (!
UUID.TryParse(key, out uuid))
114 return account.UserCountry;
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat LSL_Float
OpenSim.Region.ScriptEngine.Shared.LSL_Types.list LSL_List
override Object InitializeLifetimeService()
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString LSL_Key
Represents an item in a task inventory
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString key
OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3 LSL_Vector
An interface for a script API module to communicate with the engine it's running under ...
void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item)
Initialize the API
string cmDetectedCountry(int number)
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger LSL_Integer
OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion LSL_Rotation
Interactive OpenSim region server
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger LSLInteger
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString LSL_String
string cmGetAgentCountry(LSL_Key key)