-make ZERO_VECTOR and ZERO_ROTATION static readonly properties so they can be

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
This commit is contained in:
Mike Mazur
2008-07-31 07:11:41 +00:00
parent 56c4cc39ff
commit 57ec7a26cd
11 changed files with 180 additions and 6 deletions

View File

@@ -2118,7 +2118,7 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler.LSL
public const int PUBLIC_CHANNEL 0x00000000
// Can not be public const?
public vector ZERO_VECTOR = new vector(0, 0, 0);
public rotation ZERO_ROTATION = new rotation(0, 0, 0, 0);
public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0.0, 0.0, 1.0);
}
}