Applied Patch mantis 1220. Implements llGetStartParameter. Thanks!

0.6.0-stable
Teravus Ovares 2008-05-14 05:43:21 +00:00
parent 6a1b787436
commit 39eb39c0d5
3 changed files with 17 additions and 2 deletions

View File

@ -1406,6 +1406,9 @@ namespace OpenSim.Region.Environment.Scenes
group.ResetIDs(); group.ResetIDs();
AddEntity(group); AddEntity(group);
// Set the startup parameter for on_rez event and llGetStartParameter() function
group.StartParameter = param;
// we set it's position in world. // we set it's position in world.
group.AbsolutePosition = pos; group.AbsolutePosition = pos;

View File

@ -30,6 +30,7 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Xml; using System.Xml;
using System.Xml.Serialization;
using Axiom.Math; using Axiom.Math;
using libsecondlife; using libsecondlife;
using libsecondlife.Packets; using libsecondlife.Packets;
@ -109,6 +110,7 @@ namespace OpenSim.Region.Environment.Scenes
private bool m_scriptListens_atTarget = false; private bool m_scriptListens_atTarget = false;
private bool m_scriptListens_notAtTarget = false; private bool m_scriptListens_notAtTarget = false;
private int m_startparameter = 0;
#region Properties #region Properties
@ -121,6 +123,16 @@ namespace OpenSim.Region.Environment.Scenes
/// </summary> /// </summary>
protected bool m_isSelected = false; protected bool m_isSelected = false;
/// <summary>
/// Set start parameter for on_rez event and llGetStartParameter()
/// </summary>
[XmlIgnore]
public int StartParameter
{
get { return m_startparameter; }
set { m_startparameter = value; }
}
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>

View File

@ -2202,8 +2202,8 @@ namespace OpenSim.Region.ScriptEngine.Common
public LSL_Types.LSLInteger llGetStartParameter() public LSL_Types.LSLInteger llGetStartParameter()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
NotImplemented("llGetStartParameter"); // NotImplemented("llGetStartParameter");
return 0; return m_host.ParentGroup.StartParameter;
} }
public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos)