aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * Fixed a number of culture-variant bugs in lsl implicit type conversions.lbsa712009-04-091-9/+11
|
* * argh. reverted untested fix that snuck into the last commitlbsa712009-04-091-2/+1
|
* * tagged some more database tests as suchlbsa712009-04-091-1/+2
|
* Correct casts so that the target id in the at_target event matches the ↵idb2009-03-071-0/+5
| | | | | | | original target id. Fixes Mantis #2861
* * Apply http://opensimulator.org/mantis/view.php?id=3165Justin Clarke Casey2009-02-161-125/+109
| | | | | | | * Corrects behaviour of llListSort() * Thanks DoranZemlja!
* Add an override for the % operator.idb2009-02-141-0/+6
| | | | | Fixes Mantis #3157
* Add an override of the ! operator to lsl integer.idb2009-01-251-0/+5
| | | | | Fixes Mantis #3041
* Added overrides for == and != for list.idb2009-01-201-0/+24
| | | | | Fixes Mantis #3002
* Change list type to compare length instead of references.Melanie Thielker2009-01-171-0/+12
| | | | | | Fixes Mantis #3002
* Made the casting of stings to floats more robust and work more like SL.idb2008-12-121-14/+18
| | | | | | Added some more tests that casts previously failed on. Fixes Mantis #2789
* Mantis #2530. Thank you kindly, Idb for a patch that:Charles Krinke2008-11-031-5/+5
| | | | | | The attached patch changes the casts from explicit to implicit.
* * Apply http://opensimulator.org/mantis/view.php?id=2440Justin Clarke Casey2008-11-011-4/+27
| | | | | | | | * The attached patch changes the LSLInteger operator overrides for == and != to return LSLIntegers 1 or 0 instead of a bool and adds similar operator overrides for >, <, >= and <= * Thanks idb!
* * Apply http://opensimulator.org/mantis/view.php?id=2521Justin Clarke Casey2008-11-011-0/+5
| | | | | | * Fix not tests in LSL which require implicit casting (see mantis for an example)
* * Apply patch in http://opensimulator.org/mantis/view.php?id=2494Justin Clarke Casey2008-10-291-0/+25
| | | | | | | * Introduces missing casts for float, integer, vector, quaterion and string to list * Thanks idb
* Thank you kindly, Idb for a patch that solves:Charles Krinke2008-10-271-0/+6
| | | | | | | LSL - Bitwise operators OR and XOR do not work on integer variables
* Fix LSL bitwise OrMelanie Thielker2008-10-121-0/+6
|
* Add shift operator overloads to LSLInteger. If you get error messages whenMelanie Thielker2008-10-111-0/+10
| | | | | | | | using << and >> in scripts, this will fix it. rm bin/*.dll ; rm bin/ScriptEngines/*.dll ; rm bin/ScriptEngines/*/*.dll then rebuild and reinstall
* Add a + operator to LSLString, otherwise you will end up with CIL strings ifHomer Horwitz2008-10-111-0/+5
| | | | | | you have expressions with strings.
* Mantis #1922Melanie Thielker2008-09-281-1/+1
| | | | | | | Thank you, idb, for a patch that addresses hex digits erroneously being recognized as valid and parsed in a decimal number
* Mantis #2250Melanie Thielker2008-09-241-1/+1
| | | | | | Make ambiguous implicit conversion from LSLInteger to uint explicit
* Mantis #2243Melanie Thielker2008-09-231-8/+10
| | | | | | | | Thank you, tyre, for a patch that refactors LSL to use a unified set of method signatures and type names, reorders methods and removes unused and adds new method stubs.
* * minor: warnings removalJustin Clarke Casey2008-09-211-1/+1
|
* Mantis #2232Melanie Thielker2008-09-211-21/+26
| | | | | | | Thank you, idb, for a patch that fixes an overflow issue in casting string -> int for both engines, and adds tests!
* Mantis #2230Melanie Thielker2008-09-211-0/+12
| | | | | | | The result of constants arithmetic can be a CLI type. This allows floating point CLI types to be parsed out of lists properly.
* Fix some string to float casting nastiness. The "train script" nowMelanie Thielker2008-09-131-1/+11
| | | | | | | | | works. Also makes llGetFreeMemory return the constant 16384. LLGetFreeMemory is useless in SL, as it never goes up, only down. So, the only thing it is used for, in practice, is to detect an imminent stack/heap collision, a danger we don't have.
* Fix string parameters to functions taking lists as arguments. LSLMelanie Thielker2008-09-131-0/+4
| | | | | | | | | functions return CLI strings, which, in the case of lists, don't get wrapped. Therefore, the list had to be able to deal with that CLI type here. The correct fix would be to change all LSL function returns to LSL types.
* Mantis #511Melanie Thielker2008-09-101-4/+8
| | | | | | | Allow parsing of hexadecimal int constants from strings. Also fixes a DBNull value in the touch type field crashing the sim
* Fix llResetScript() and the reset button to actually restore globalMelanie Thielker2008-09-091-0/+2
| | | | | | | variables to their initializer values, rather then zeroing them. Also handles lists properly now.
* Fix string -> int cast to variableMelanie Thielker2008-09-091-3/+8
|
* Adapt the unit tests to the new list rules, change some casts toMelanie Thielker2008-09-081-1/+6
| | | | | | new method for testing
* Mantis #2147Melanie Thielker2008-09-081-4/+3
| | | | | | | | | Thank you, ralphos, for a patch the adapts llSetColor and friends to a change in the underlying types. Also, thank you for a much cleaner way of casting types out of lists, which I will adopt throughout.
* * This is the fabled LibOMV update with all of the libOMV types from JHurlimanTeravus Ovares2008-09-061-1/+1
| | | | | | | * This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
* Mantis#2126. Thank you kindly, Ralphos for a patch that addresses:Charles Krinke2008-09-051-1/+63
| | | | | | | | | | | | | | Types extracted from a LSL_Types.list have to be down-cast initially to the exact type of value type object that the Object actually is. This would make for very cumbersome, ugly code when extracting list parameter items in ll functions where a few implicit conversions should be applied such as key -> LSLString and LSLInteger -> LSLFloat (but not LSLFloat -> LSLInteger). This patch adds a set of GetXXXItem member functions to the LLS_Type.list class, where XXX is the name of the LSL_Type to be extracted: LSLFLoat, LSLInteger etc. All take a single, int parameter that is the item number to be extracted.
* Mantis #2112Melanie Thielker2008-09-031-1/+6
| | | | | | | Thannk you, ralphos, for a patch to clean up list item type handling and add a missing explicit cast in Shared/
* Fix regex for string->int cast to accept leading spaces and a signMelanie Thielker2008-09-021-1/+1
|
* Change some chat output functions so that text is truncated atMelanie Thielker2008-09-021-1/+8
| | | | | | | | 1000 chars to avoid the exception thrown by libomv at 1100 chars. Change string->int conversion so it copes with non-numeric chars after the number and no longer uses a float to parse the value.
* This is an attempt to fix the handling of constants in LSL.Melanie Thielker2008-09-011-19/+19
| | | | | | | | | | It wraps constants in new LSLType(x), so that lists with constant values are processed correctly. Contains changes to the lsl.parser.cs that are not (yet) reflected in opensim-libs, since this experimental patch affects XEngine only. Also contains nuts.
* Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs.Mike Mazur2008-08-191-91/+96
|
* Apply Godfrey's patch (originally in r5872) to Shared/LSL_Types.cs as well.Mike Mazur2008-08-191-2/+94
|
* Formatting cleanup.Jeff Ames2008-08-181-11/+11
|
* Mantis#1963. Thank you kindly, Krtaylor for a patch that solves:Charles Krinke2008-08-161-0/+10
| | | | | XEngine missing string constructor for LSLInteger and LSLFloat
* -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/+10
| | | | | | | -sync Shared/LSL_Types.cs with Common/LSL_Types.cs -get the test script in issue 1822 to compile
* -copy LSL_Types tests from Common/ to Shared/Mike Mazur2008-07-281-6/+6
| | | | | | -fix some whitespace/formatting
* Refresh LSLTypes.cs in Shared/ from the one in Common/, which wasMelanie Thielker2008-07-281-100/+45
| | | | | | more complete.
* 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
|