lua - implement userdata.containskey()

This commit is contained in:
adelikat 2015-07-02 14:29:19 -04:00
parent a783ef75f6
commit 2790dcbf0d
1 changed files with 9 additions and 0 deletions

View File

@ -61,5 +61,14 @@ namespace BizHawk.Client.EmuHawk
{
return Global.UserBag.Remove(key);
}
[LuaMethodAttributes(
"containskey",
"returns whether or not there is an entry for the given key"
)]
public bool ContainsKey(string key)
{
return Global.UserBag.ContainsKey(key);
}
}
}