RegisterCommand() public method

public RegisterCommand ( string commandName, Type commandType ) : void
commandName string
commandType Type
return void
Esempio n. 1
0
 static int RegisterCommand(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Controller  obj  = (Controller)ToLua.CheckObject <Controller>(L, 1);
         string      arg0 = ToLua.CheckString(L, 2);
         System.Type arg1 = ToLua.CheckMonoType(L, 3);
         obj.RegisterCommand(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 2
0
 public void RegisterCommand(NotifyDefine notiid, ICommand command)
 {
     m_controller.RegisterCommand(notiid, command);
 }
Esempio n. 3
0
 /// <summary>
 /// Register an <c>ICommand</c> with the <c>Controller</c> by Notification name.
 /// </summary>
 /// <param name="notificationName">the name of tBhe <c>INotification</c> to associate the <c>ICommand</c> with</param>
 /// <param name="commandType">a reference to the Class of the <c>ICommand</c></param>
 public virtual void RegisterCommand(string notificationName, Type commandType)
 {
     Controller.RegisterCommand(notificationName, commandType);
 }
Esempio n. 4
0
 public void RegisterCommand(string notificationName, Func <ICommand> commandFunc)
 {
     _controller.RegisterCommand(notificationName, commandFunc);
 }