Controller.HasCommand C# (CSharp) Method

HasCommand() public method

public HasCommand ( string commandName ) : bool
commandName string
return bool
    public virtual bool HasCommand(string commandName)
    {
        lock (mSyncRoot)
        {
            return mCommandMap.ContainsKey(commandName);
        }
    }

Usage Example

Esempio n. 1
0
 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));
     }
 }
All Usage Examples Of Controller::HasCommand