Sync OpenSim/Region/ScriptEngine/{Common,Shared}/LSL_Types.cs.

0.6.0-stable
Mike Mazur 2008-08-19 05:30:10 +00:00
parent a513cba60b
commit 225067d8b6
2 changed files with 95 additions and 80 deletions

View File

@ -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

View File

@ -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