LSL key should be implicitly cast to a boolean value

Signed-off-by: James Hughes <jamesh@ascent.bluewallgroup.com>
mb-throttle-test
Cinder 2014-11-19 18:07:03 -07:00 committed by James Hughes
parent c155656349
commit cfaf904a3b
1 changed files with 10 additions and 0 deletions

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)
{