public HasCommand ( string commandName ) : bool | ||
commandName | string | |
return | bool |
public virtual bool HasCommand(string commandName)
{
lock (mSyncRoot)
{
return mCommandMap.ContainsKey(commandName);
}
}
static int HasCommand(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Controller obj = (Controller)ToLua.CheckObject <Controller>(L, 1); string arg0 = ToLua.CheckString(L, 2); bool o = obj.HasCommand(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }