HasCommand() public method

public HasCommand ( string commandName ) : bool
commandName string
return bool
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));
     }
 }
Esempio n. 2
0
 public bool HasCommand(NotifyDefine notiid)
 {
     return(m_controller.HasCommand(notiid));
 }
Esempio n. 3
0
 /// <summary>
 /// Check if a Command is registered for a given Notification
 /// </summary>
 /// <param name="notificationName"></param>
 /// <returns>whether a Command is currently registered for the given <c>notificationName</c>.</returns>
 public virtual bool HasCommand(string notificationName)
 {
     return(Controller.HasCommand(notificationName));
 }
Esempio n. 4
0
 public bool HasCommand <T>(string name) where T : ICommand
 {
     return(Controller.HasCommand <T>(name));
 }
Esempio n. 5
0
 public bool HasCommand(IEvent evt)
 {
     return(Controller.HasCommand(evt));
 }
Esempio n. 6
0
 public bool HasCommand(string notificationName)
 {
     return(_controller.HasCommand(notificationName));
 }