aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs.Mike Mazur2008-08-191-0/+10
|
* Formatting cleanup.Jeff Ames2008-08-181-12/+12
|
* Update svn properties, minor formatting cleanup.Jeff Ames2008-08-161-91/+91
|
* Mantis#1890. Thank you kindly, Godfrey, for a patch that addresses:Charles Krinke2008-08-161-2/+94
| | | | | llListSort() sorts integers and floats in ASCII order rather than numeric order
* Thanks, M. Igarashi & nlin, for a patch that implements unary minus operatorMike Mazur2008-07-311-0/+5
| | | | | | for Vector3 type. Fix issue 1872.
* -make ZERO_VECTOR and ZERO_ROTATION static readonly properties so they can beMike Mazur2008-07-311-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
* More LSL_Types implicit/explicit cast changes. Fix issue 1854.Mike Mazur2008-07-311-3/+3
|
* When casting strings to int, use double.Parse() as strings may be floats. WithMike Mazur2008-07-281-2/+4
| | | | | | this commit, issue 1822 should be fixed.
* -implement LSLString -> Quaternion explicit castMike Mazur2008-07-281-0/+5
| | | | | | | -sync Shared/LSL_Types.cs with Common/LSL_Types.cs -get the test script in issue 1822 to compile
* Adding explicit cast from LSLFloat to LSLInteger. Work on issue 1822.Mike Mazur2008-07-281-0/+5
|
* -copy LSL_Types tests from Common/ to Shared/Mike Mazur2008-07-281-3/+3
| | | | | | -fix some whitespace/formatting
* Conversion from double to LSLInteger needs to be explicit. Fix issue 1826.Mike Mazur2008-07-271-1/+1
|
* Implement LSLFloat {+,-,*,/} LSLFloat operations. Fix issues 1532, 1701, 1824 &Mike Mazur2008-07-271-0/+20
| | | | | | 1832.
* Add casts from integer to float. Fix issue 1822.Mike Mazur2008-07-251-0/+5
|
* -add test for newly introduced cast operators (issue 1818)Mike Mazur2008-07-251-0/+1
| | | | | | | -fix formatting -remove CompilerTest test since it seems to fail randomly
* *Fixes #0001818: typecast string to floatmingchen2008-07-251-0/+4
|
* Replace implicit casts from LSLFloat to int and uint which were removed inMike Mazur2008-07-241-0/+10
| | | | | | | | | r5487. Also put the unit tests back for Bamboo to execute them, let's see how this goes.
* Implement cast to LSL_Types.LSLInteger from double. Fix issue 1770.Mike Mazur2008-07-181-0/+5
|
* Mantis#1755. Thank you kindly, Matth for a patch that solves:Charles Krinke2008-07-161-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.
* Mantis#1746. Thank you kindly, nlin for pointing out thatCharles Krinke2008-07-161-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.
* I had to revert the Mantis#1746 patch as although the local buildCharles Krinke2008-07-151-2/+2
| | | | | with Windows compiled, the automated build failed.
* Mantis#1746. Thank you kindly, nlin & M.Igarashi for a patch that:Charles Krinke2008-07-151-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.
* Mantis#1673. Thank you kindly, Matth for a patch that:Charles Krinke2008-07-101-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 -,*,/)
* Copyright notices and formatting cleanup.Jeff Ames2008-07-061-2/+2
|
* Mantis#1623. Thank you, Melanie for a patch that:Charles Krinke2008-06-281-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)
* Mantis#1469. Thank you kindly, Mikem for a patch that addresses:Charles Krinke2008-06-091-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/.
* Mantis#1451. Thank you kindly, Mikem for a patch that addresses:Charles Krinke2008-06-051-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.
* Formatting cleanup.Jeff Ames2008-05-161-11/+11
|
* Thank you very much, mjm for :Charles Krinke2008-05-161-14/+9
| | | | | Fixing LSL multiplication and division operators for quaternions
* Formatting cleanup.Jeff Ames2008-05-141-12/+10
|
* Formatting cleanup.Jeff Ames2008-05-121-12/+12
|
* * Changed implicit string conversion to LSL_Types.LSLString in money event ↵Teravus Ovares2008-05-111-0/+3
| | | | | | | of the key of the payer to an Explicit one. * Fixes Mantis: #1045
* From: Michael Osias <mosias@us.ibm.com>Justin Clarke Casey2008-05-091-0/+12
| | | | | | Stop .net generating ambiguous operator errors when two integers are compared for equality in LSL
* Thank you, Melanie for a patch that helps conversionCharles Krinke2008-05-091-0/+15
| | | | | from a string to a vector in OSSL.
* De-tabify source.Jeff Ames2008-05-061-188/+188
|
* Thank you kindly, Melanie for a patch to solveCharles Krinke2008-05-021-35/+42
| | | | | llParticleSystem and osDynamicTexture issues.
* revert changeset 4469 as this breaks the script engine.Sean Dague2008-05-011-7/+1
|
* * Applied Mantis#1106 - fix missing cast from LSLInteger to uint, make int ↵Adam Frisby2008-05-011-1/+7
| | | | cast more generic (Thanks Melanie!)
* Patch from Melanie: 0001077: [PATCH] LSL types cannot be cast implicitly or ↵Teravus Ovares2008-04-301-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.
* * Applying melanie's List2Vector and List2Rot patch. Added a routine in ↵Teravus Ovares2008-04-291-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)
* Thank you Melanie for implementingCharles Krinke2008-04-261-0/+64
| | | | | llListSort() in linear and strided modes.
* * Patch from Melanie. Mantis: 1040. Thanks Melanie!Teravus Ovares2008-04-241-0/+62
| | | | | * Implements llDeleteSubList in all it's modes. Corrects type selection in inventory functions. Adds support for INVENTORY_ALL selector
* * Optimised using statements and namespace references across entire project ↵Adam Frisby2008-04-211-13/+13
| | | | (this took a while to run).
* From: Alan M Webb <awebb@vnet.ibm.com>Justin Clarke Casey2008-04-161-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.
* Adds in +, -, and / operators for Rotations (and fixes Mantis 671)alondria2008-03-211-0/+17
|
* Formatting cleanup.Jeff Ames2008-03-181-28/+25
|
* Refactor out some duplicate code.Jeff Ames2008-03-111-3/+3
|
* * Removed a bunch of compiler warnings.Adam Frisby2008-03-031-1/+1
|
* Minor cleanup.Jeff Ames2008-02-201-1/+1
|
* Implements llListStatistics() and a bunch-o-LSL_Types.list statistical ↵alondria2008-02-101-0/+229
| | | | methods. Added LIST_STAT_HARMONIC_MEAN in addition to LL's LIST_STAT_*