diff options
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index 7d21a4b..ca81af1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1430,6 +1430,16 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1430 | return false; | 1430 | return false; |
1431 | } | 1431 | } |
1432 | } | 1432 | } |
1433 | |||
1434 | public static bool operator true(key k) | ||
1435 | { | ||
1436 | return (Boolean)k; | ||
1437 | } | ||
1438 | |||
1439 | public static bool operator false(key k) | ||
1440 | { | ||
1441 | return !(Boolean)k; | ||
1442 | } | ||
1433 | 1443 | ||
1434 | static public implicit operator key(string s) | 1444 | static public implicit operator key(string s) |
1435 | { | 1445 | { |