aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-08-19Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs.Mike Mazur1-0/+10
2008-08-18Formatting cleanup.Jeff Ames1-12/+12
2008-08-16Update svn properties, minor formatting cleanup.Jeff Ames1-91/+91
2008-08-16Mantis#1890. Thank you kindly, Godfrey, for a patch that addresses:Charles Krinke1-2/+94
llListSort() sorts integers and floats in ASCII order rather than numeric order
2008-07-31Thanks, M. Igarashi & nlin, for a patch that implements unary minus operatorMike Mazur1-0/+5
for Vector3 type. Fix issue 1872.
2008-07-31-make ZERO_VECTOR and ZERO_ROTATION static readonly properties so they can beMike Mazur1-0/+24
used in scripts -cast from bool to LSL{Integer,Float,String} so functions such as `integer isZero(integer x) { return (x == 0); }` work -progress on issue 1863
2008-07-31More LSL_Types implicit/explicit cast changes. Fix issue 1854.Mike Mazur1-3/+3
2008-07-28When casting strings to int, use double.Parse() as strings may be floats. WithMike Mazur1-2/+4
this commit, issue 1822 should be fixed.
2008-07-28-implement LSLString -> Quaternion explicit castMike Mazur1-0/+5
-sync Shared/LSL_Types.cs with Common/LSL_Types.cs -get the test script in issue 1822 to compile
2008-07-28Adding explicit cast from LSLFloat to LSLInteger. Work on issue 1822.Mike Mazur1-0/+5
2008-07-28-copy LSL_Types tests from Common/ to Shared/Mike Mazur1-3/+3
-fix some whitespace/formatting
2008-07-27Conversion from double to LSLInteger needs to be explicit. Fix issue 1826.Mike Mazur1-1/+1
2008-07-27Implement LSLFloat {+,-,*,/} LSLFloat operations. Fix issues 1532, 1701, 1824 &Mike Mazur1-0/+20
1832.
2008-07-25Add casts from integer to float. Fix issue 1822.Mike Mazur1-0/+5
2008-07-25-add test for newly introduced cast operators (issue 1818)Mike Mazur1-0/+1
-fix formatting -remove CompilerTest test since it seems to fail randomly
2008-07-25*Fixes #0001818: typecast string to floatmingchen1-0/+4
2008-07-24Replace implicit casts from LSLFloat to int and uint which were removed inMike Mazur1-0/+10
r5487. Also put the unit tests back for Bamboo to execute them, let's see how this goes.
2008-07-18Implement cast to LSL_Types.LSLInteger from double. Fix issue 1770.Mike Mazur1-0/+5
2008-07-16Mantis#1755. Thank you kindly, Matth for a patch that solves:Charles Krinke1-18/+53
When using math operators +,-,*,/ in an LSL script with an LSLFloat and an integer literal the wrong result is returned. This patch adds operators to the LSLFloat type to handle this case.
2008-07-16Mantis#1746. Thank you kindly, nlin for pointing out thatCharles Krinke1-2/+2
I needed to apply the patch a little better then last night for: Dot product operator in LSL_Types.cs incorrectly returns a component-wise vector multiplication; it should return a scalar dot product. Thanks to M. Igarashi for the patch.
2008-07-15I had to revert the Mantis#1746 patch as although the local buildCharles Krinke1-2/+2
with Windows compiled, the automated build failed.
2008-07-15Mantis#1746. Thank you kindly, nlin & M.Igarashi for a patch that:Charles Krinke1-2/+2
Dot product operator in LSL_Types.cs incorrectly returns a component-wise vector multiplication; it should return a scalar dot product. Thanks to M. Igarashi for the patch.
2008-07-10Mantis#1673. Thank you kindly, Matth for a patch that:Charles Krinke1-0/+20
LSLInteger + literal integer is not an LSLInteger. The included patch fixes the issue: LSLInteger + literal integer is not an LSLInteger (also fixed for -,*,/)
2008-07-06Copyright notices and formatting cleanup.Jeff Ames1-2/+2
2008-06-28Mantis#1623. Thank you, Melanie for a patch that:Charles Krinke1-0/+25
Fully defines the equality operators on the lsl types and plubs in the script engine side of the work begun in 0001616 (aly, this one's for you)
2008-06-09Mantis#1469. Thank you kindly, Mikem for a patch that addresses:Charles Krinke1-0/+24
Currently LSL code such as below does not compile on OpenSim, but compiles fine in Second Life: list mylist = []; mylist += [1, 2, 3]; mylist += "four"; list newlist = mylist + 5.0; The problem is that the LSL_Types.list class does not have an operator for adding a string to a list. I am including a patch which implements adding a string, integer or float to a list. I am also including tests. The file LSL_TypesTestList.cs belongs in OpenSim/Tests/OpenSim/Region/ScriptEngine/Common/.
2008-06-05Mantis#1451. Thank you kindly, Mikem for a patch that addresses:Charles Krinke1-9/+64
LSL scripts in which a float type is cast to a string or a string type is cast to a float do not compile. When the script is translated from LSL to C#, the LSL float type is translated into double. There is no string <-> double cast in C#, so compilation fails. There is a LSLFloat type, however it seems unfinished and is not used. I am attaching a patch that implements the LSLFloat type. I have also added two methods to the LSLString type to facilitate float <-> string casts.
2008-05-16Formatting cleanup.Jeff Ames1-11/+11
2008-05-16Thank you very much, mjm for :Charles Krinke1-14/+9
Fixing LSL multiplication and division operators for quaternions
2008-05-14Formatting cleanup.Jeff Ames1-12/+10
2008-05-12Formatting cleanup.Jeff Ames1-12/+12
2008-05-11* Changed implicit string conversion to LSL_Types.LSLString in money event ↵Teravus Ovares1-0/+3
of the key of the payer to an Explicit one. * Fixes Mantis: #1045
2008-05-09From: Michael Osias <mosias@us.ibm.com>Justin Clarke Casey1-0/+12
Stop .net generating ambiguous operator errors when two integers are compared for equality in LSL
2008-05-09Thank you, Melanie for a patch that helps conversionCharles Krinke1-0/+15
from a string to a vector in OSSL.
2008-05-06De-tabify source.Jeff Ames1-188/+188
2008-05-02Thank you kindly, Melanie for a patch to solveCharles Krinke1-35/+42
llParticleSystem and osDynamicTexture issues.
2008-05-01revert changeset 4469 as this breaks the script engine.Sean Dague1-7/+1
2008-05-01* Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int ↵Adam Frisby1-1/+7
cast more generic (Thanks Melanie!)
2008-04-30Patch from Melanie: 0001077: [PATCH] LSL types cannot be cast implicitly or ↵Teravus Ovares1-52/+124
explicitly in many cases Thanks Melanie! * Also, I moved the event parser and re-writer to a separate static object. More work will be done here shortly.
2008-04-29* Applying melanie's List2Vector and List2Rot patch. Added a routine in ↵Teravus Ovares1-0/+6
the Quaternion constructors to catch 0,0,0,0 quaternions and convert them to 0,0,0,1 (as 0,0,0,0 is implicitly converted to 0,0,0,1 in LSL and will crash libsl if left which will in turn crash the simulator)
2008-04-26Thank you Melanie for implementingCharles Krinke1-0/+64
llListSort() in linear and strided modes.
2008-04-24* Patch from Melanie. Mantis: 1040. Thanks Melanie!Teravus Ovares1-0/+62
* Implements llDeleteSubList in all it's modes. Corrects type selection in inventory functions. Adds support for INVENTORY_ALL selector
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-13/+13
(this took a while to run).
2008-04-16From: Alan M Webb <awebb@vnet.ibm.com>Justin Clarke Casey1-13/+60
This fixes a bug in LSL_Types.list GetSublist that was manifest if the source list was empty and negative indices were used.
2008-03-21Adds in +, -, and / operators for Rotations (and fixes Mantis 671)alondria1-0/+17
2008-03-18Formatting cleanup.Jeff Ames1-28/+25
2008-03-11Refactor out some duplicate code.Jeff Ames1-3/+3
2008-03-03* Removed a bunch of compiler warnings.Adam Frisby1-1/+1
2008-02-20Minor cleanup.Jeff Ames1-1/+1
2008-02-10Implements llListStatistics() and a bunch-o-LSL_Types.list statistical ↵alondria1-0/+229
methods. Added LIST_STAT_HARMONIC_MEAN in addition to LL's LIST_STAT_*