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)); } }
public void RegisterCommand(NotifyDefine notiid, ICommand command) { m_controller.RegisterCommand(notiid, command); }
/// <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); }
public void RegisterCommand(string notificationName, Func <ICommand> commandFunc) { _controller.RegisterCommand(notificationName, commandFunc); }