HasCommand() 공개 메소드

public HasCommand ( string commandName ) : bool
commandName string
리턴 bool
예제 #1
0
파일: ControllerWrap.cs 프로젝트: CDxu/test
 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));
     }
 }
예제 #2
0
 public bool HasCommand(NotifyDefine notiid)
 {
     return(m_controller.HasCommand(notiid));
 }
예제 #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));
 }
예제 #4
0
 public bool HasCommand <T>(string name) where T : ICommand
 {
     return(Controller.HasCommand <T>(name));
 }
예제 #5
0
 public bool HasCommand(IEvent evt)
 {
     return(Controller.HasCommand(evt));
 }
예제 #6
0
 public bool HasCommand(string notificationName)
 {
     return(_controller.HasCommand(notificationName));
 }