LSL key should be implicitly cast to a boolean value

Signed-off-by: James Hughes <jamesh@ascent.bluewallgroup.com>
This commit is contained in:
Cinder
2014-11-19 18:07:03 -07:00
committed by James Hughes
parent c155656349
commit cfaf904a3b

View File

@@ -1430,6 +1430,16 @@ namespace OpenSim.Region.ScriptEngine.Shared
return false;
}
}
public static bool operator true(key k)
{
return (Boolean)k;
}
public static bool operator false(key k)
{
return !(Boolean)k;
}
static public implicit operator key(string s)
{