aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* -add test for newly introduced cast operators (issue 1818)Mike Mazur2008-07-251-4/+5
| | | | | | | -fix formatting -remove CompilerTest test since it seems to fail randomly
* Add mingchen's fix for string->float cast to Shared/Melanie Thielker2008-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-14/+54
| | | | | | | | 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#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 -,*,/)
* Comment out StringTest until we use it somewhere.Charles Krinke2008-06-281-16/+16
|
* Minor formatting cleanup.Jeff Ames2008-06-251-1/+1
|
* * Applied patch from Melanie, mantis issue #1581 - "Refactor LSL language, ↵lbsa712008-06-241-0/+1519
api and compiler out of XEngine" "First stage in a major Script Engine refactor, that will result in the LSL implementaions ebing reconverged. Not there yet, but one major part is done." Thank you, Melanie!