mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
This commit is contained in:
@@ -12019,6 +12019,40 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return 1;
|
||||
}
|
||||
|
||||
public LSL_Integer llGetMemoryLimit()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// The value returned for LSO scripts in SL
|
||||
return 16384;
|
||||
}
|
||||
|
||||
public LSL_Integer llSetMemoryLimit(LSL_Integer limit)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// Treat as an LSO script
|
||||
return ScriptBaseClass.FALSE;
|
||||
}
|
||||
|
||||
public LSL_Integer llGetSPMaxMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// The value returned for LSO scripts in SL
|
||||
return 16384;
|
||||
}
|
||||
|
||||
public virtual LSL_Integer llGetUsedMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// The value returned for LSO scripts in SL
|
||||
return 16384;
|
||||
}
|
||||
|
||||
public void llScriptProfiler(LSL_Integer flags)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
// This does nothing for LSO scripts in SL
|
||||
}
|
||||
|
||||
#region Not Implemented
|
||||
//
|
||||
// Listing the unimplemented lsl functions here, please move
|
||||
@@ -12031,25 +12065,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
NotImplemented("llGetEnv");
|
||||
}
|
||||
|
||||
public void llGetSPMaxMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetSPMaxMemory");
|
||||
}
|
||||
|
||||
public virtual LSL_Integer llGetUsedMemory()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetUsedMemory");
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void llScriptProfiler(LSL_Integer flags)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
//NotImplemented("llScriptProfiler");
|
||||
}
|
||||
|
||||
public void llSetSoundQueueing(int queue)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
@@ -149,7 +149,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
LSL_Rotation llGetLocalRot();
|
||||
LSL_Float llGetMass();
|
||||
LSL_Float llGetMassMKS();
|
||||
void llGetNextEmail(string address, string subject);
|
||||
LSL_Integer llGetMemoryLimit();
|
||||
void llGetNextEmail(string address, string subject);
|
||||
LSL_String llGetNotecardLine(string name, int line);
|
||||
LSL_Key llGetNumberOfNotecardLines(string name);
|
||||
LSL_Integer llGetNumberOfPrims();
|
||||
@@ -187,6 +188,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
LSL_String llGetScriptName();
|
||||
LSL_Integer llGetScriptState(string name);
|
||||
LSL_String llGetSimulatorHostname();
|
||||
LSL_Integer llGetSPMaxMemory();
|
||||
LSL_Integer llGetStartParameter();
|
||||
LSL_Integer llGetStatus(int status);
|
||||
LSL_String llGetSubString(string src, int start, int end);
|
||||
@@ -322,6 +324,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void llSay(int channelID, string text);
|
||||
void llScaleTexture(double u, double v, int face);
|
||||
LSL_Integer llScriptDanger(LSL_Vector pos);
|
||||
void llScriptProfiler(LSL_Integer flag);
|
||||
LSL_Key llSendRemoteData(string channel, string dest, int idata, string sdata);
|
||||
void llSensor(string name, string id, int type, double range, double arc);
|
||||
void llSensorRemove();
|
||||
@@ -345,6 +348,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void llSetLinkTexture(int linknumber, string texture, int face);
|
||||
void llSetLinkTextureAnim(int linknum, int mode, int face, int sizex, int sizey, double start, double length, double rate);
|
||||
void llSetLocalRot(LSL_Rotation rot);
|
||||
LSL_Integer llSetMemoryLimit(LSL_Integer limit);
|
||||
void llSetObjectDesc(string desc);
|
||||
void llSetObjectName(string name);
|
||||
void llSetObjectPermMask(int mask, int value);
|
||||
|
||||
@@ -383,6 +383,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
public const int PRIM_SCULPT_FLAG_INVERT = 64;
|
||||
public const int PRIM_SCULPT_FLAG_MIRROR = 128;
|
||||
|
||||
public const int PROFILE_NONE = 0;
|
||||
public const int PROFILE_SCRIPT_MEMORY = 1;
|
||||
|
||||
public const int MASK_BASE = 0;
|
||||
public const int MASK_OWNER = 1;
|
||||
public const int MASK_GROUP = 2;
|
||||
|
||||
@@ -586,6 +586,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_LSL_Functions.llGetMassMKS();
|
||||
}
|
||||
|
||||
public LSL_Integer llGetMemoryLimit()
|
||||
{
|
||||
return m_LSL_Functions.llGetMemoryLimit();
|
||||
}
|
||||
|
||||
public void llGetNextEmail(string address, string subject)
|
||||
{
|
||||
m_LSL_Functions.llGetNextEmail(address, subject);
|
||||
@@ -776,6 +781,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_LSL_Functions.llGetSimulatorHostname();
|
||||
}
|
||||
|
||||
public LSL_Integer llGetSPMaxMemory()
|
||||
{
|
||||
return m_LSL_Functions.llGetSPMaxMemory();
|
||||
}
|
||||
|
||||
public LSL_Integer llGetStartParameter()
|
||||
{
|
||||
return m_LSL_Functions.llGetStartParameter();
|
||||
@@ -1445,6 +1455,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_LSL_Functions.llScriptDanger(pos);
|
||||
}
|
||||
|
||||
public void llScriptProfiler(LSL_Integer flags)
|
||||
{
|
||||
m_LSL_Functions.llScriptProfiler(flags);
|
||||
}
|
||||
|
||||
public LSL_Key llSendRemoteData(string channel, string dest, int idata, string sdata)
|
||||
{
|
||||
return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata);
|
||||
@@ -1555,6 +1570,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_LSL_Functions.llSetLocalRot(rot);
|
||||
}
|
||||
|
||||
public LSL_Integer llSetMemoryLimit(LSL_Integer limit)
|
||||
{
|
||||
return m_LSL_Functions.llSetMemoryLimit(limit);
|
||||
}
|
||||
|
||||
public void llSetObjectDesc(string desc)
|
||||
{
|
||||
m_LSL_Functions.llSetObjectDesc(desc);
|
||||
|
||||
Reference in New Issue
Block a user