Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs.
parent
a513cba60b
commit
225067d8b6
|
@ -1351,6 +1351,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
value = (int)d;
|
||||
}
|
||||
|
||||
public LSLInteger(string s)
|
||||
{
|
||||
value = (int)double.Parse(s);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
|
@ -1548,6 +1553,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
this.value = d;
|
||||
}
|
||||
|
||||
public LSLFloat(string s)
|
||||
{
|
||||
this.value = double.Parse(s);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Operators
|
||||
|
|
|
@ -126,6 +126,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
|||
return (x == vector.x && x == vector.x && z == vector.z);
|
||||
}
|
||||
|
||||
public static Vector3 operator -(Vector3 vector)
|
||||
{
|
||||
return new Vector3(-vector.x, -vector.y, -vector.z);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Vector & Vector Math
|
||||
|
|
Loading…
Reference in New Issue