Adding neew function stubs, constant entries. Moving llXorBase64StringsCorrect to deprecated functions.

This commit is contained in:
Ima Mechanique 2013-07-11 01:18:32 +01:00
parent 01cf42fe07
commit 987c2ad77f
3 changed files with 26 additions and 13 deletions

View file

@ -103,7 +103,7 @@ namespace LSLEditor
System.Drawing.Point point = Properties.Settings.Default.RegionCorner;
SecondLife.vector RegionCorner = new SecondLife.vector(point.X, point.Y, 0);
SecondLife.vector pos = secondlife.llGetLocalPos(false);
SecondLife.vector pos = secondlife.GetLocalPos;
wc.Headers.Add("X-SecondLife-Shard", Properties.Settings.Default.XSecondLifeShard);
wc.Headers.Add("X-SecondLife-Object-Name", secondlife.host.GetObjectName());

View file

@ -3309,7 +3309,7 @@
</Word>
<Word name="llWhisper">
llWhisper(integer channel, string text);
void llWhisper(integer channel, string text);
Whisper text on channel. Channel 0 is the public chat channel that
all avatars see as chat text. Channels 1 to 2,147,483,648 are
@ -3323,11 +3323,11 @@
Returns the wind velocity below the object position + offset.
</Word>
<Word name="llXorBase64StringsCorrect">
string llXorBase64StringsCorrect(string s1, string s2)
<Word name="llXorBase64">
string llXorBase64(string sText1, string sText2);
Performs an xor on two Base64 strings and returns a Base64 string.
s2 repeats if it is shorter than s1.
Performs an XOR on two Base64 strings and returns a Base64 string.
sText2 repeats if it is shorter than sText1.
This function is for encrypting data. Put your data in s1 and
your key in s2 to encrypt or put the encrypted data into s1
with the same key in s2 to decrypt again.
@ -5196,6 +5196,7 @@
<Word name="llStopPointAt" />
<Word name="llTakeCamera" />
<Word name="llXorBase64Strings" />
<Word name="llXorBase64StringsCorrect" />
</Words>

View file

@ -92,8 +92,18 @@ namespace LSLEditor
#endregion
#region constructor
public SecondLife()
#region Properties
public vector GetLocalPos
{
// TODO change this to use a call to llGetLocalPos specifying NOT to be Verbose. After all functions have been changed to allow verbose/silent option.
get { return m_pos; }
}
#endregion
#region constructor
public SecondLife()
{
host = null;
m_random = new Random();
@ -279,6 +289,7 @@ namespace LSLEditor
public const int ATTACH_HUD_BOTTOM = 37;
public const int ATTACH_HUD_BOTTOM_RIGHT = 38;
public const int AVOID_NONE = 0;
public const int AVOID_CHARACTERS = 1;
public const int AVOID_DYNAMIC_OBSTACLES = 2;
@ -466,6 +477,7 @@ namespace LSLEditor
public const int MASK_OWNER = 1;
public const int OBJECT_ATTACHED_POINT = 19;
public const int OBJECT_CHARACTER_TIME = 17;
public const int OBJECT_NAME = 1;
public const int OBJECT_DESC = 2;
public const int OBJECT_POS = 3;
@ -739,6 +751,8 @@ namespace LSLEditor
public const int PU_EVADE_HIDDEN = 0x07;
public const int PU_EVADE_SPOTTED = 0x08;
public const int PU_FAILURE_DYNAMIC_PATHFINDING_DISABLED = 10;
public const int PU_FAILURE_PARCEL_UNREACHABLE = 11;
public const int PU_FAILURE_INVALID_GOAL = 0x03;
public const int PU_FAILURE_INVALID_START = 0x02;
public const int PU_FAILURE_NO_VALID_DESTINATION = 0x06;
@ -2210,11 +2224,9 @@ namespace LSLEditor
return iLength;
}
public vector llGetLocalPos(Boolean bVerbose = true)
public vector llGetLocalPos()
{
if (bVerbose) {
Verbose("llGetLocalPos()={0}", m_pos);
}
Verbose("llGetLocalPos()={0}", m_pos);
return m_pos;
}
@ -2609,7 +2621,7 @@ namespace LSLEditor
return m_start_parameter;
}
public list llGetStaticPath(vector vStart, vector vEnd, float fRadius, list lParameters)
public list llGetStaticPath(vector vStart, vector vEnd, Float fRadius, list lParameters)
{
list lReturn = new list();
Verbose("llGetStaticPath({0}, {1}, {2}, {3})={4}", vStart, vEnd, fRadius, lParameters.ToVerboseString(), lReturn.ToVerboseString());