HasCommand() public méthode

public HasCommand ( string commandName ) : bool
commandName string
Résultat bool
Exemple #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));
     }
 }
Exemple #2
0
 public bool HasCommand(NotifyDefine notiid)
 {
     return(m_controller.HasCommand(notiid));
 }
Exemple #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));
 }
Exemple #4
0
 public bool HasCommand <T>(string name) where T : ICommand
 {
     return(Controller.HasCommand <T>(name));
 }
Exemple #5
0
 public bool HasCommand(IEvent evt)
 {
     return(Controller.HasCommand(evt));
 }
Exemple #6
0
 public bool HasCommand(string notificationName)
 {
     return(_controller.HasCommand(notificationName));
 }