diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index 1e2e573..eb13f45 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -1292,6 +1292,26 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1292 | bool ret = i1.value != i2.value; | 1292 | bool ret = i1.value != i2.value; |
1293 | return ret; | 1293 | return ret; |
1294 | } | 1294 | } |
1295 | |||
1296 | static public LSLInteger operator +(LSLInteger i1, int i2) | ||
1297 | { | ||
1298 | return new LSLInteger(i1.value + i2); | ||
1299 | } | ||
1300 | |||
1301 | static public LSLInteger operator -(LSLInteger i1, int i2) | ||
1302 | { | ||
1303 | return new LSLInteger(i1.value - i2); | ||
1304 | } | ||
1305 | |||
1306 | static public LSLInteger operator *(LSLInteger i1, int i2) | ||
1307 | { | ||
1308 | return new LSLInteger(i1.value * i2); | ||
1309 | } | ||
1310 | |||
1311 | static public LSLInteger operator /(LSLInteger i1, int i2) | ||
1312 | { | ||
1313 | return new LSLInteger(i1.value / i2); | ||
1314 | } | ||
1295 | 1315 | ||
1296 | public override bool Equals(Object o) | 1316 | public override bool Equals(Object o) |
1297 | { | 1317 | { |