Esempio n. 1
0
    private void implConstructor(ReceiverMode receiverMode, ICommandInvoker commandInvoker,
                                 ICommandListenerLinked <CommandReceiver> commandListener)
    {
        this.m_ReceiverMode = receiverMode;

        this.m_CommandInvoker  = commandInvoker ?? new CommandInvokerDefault();
        this.m_CommandListener = commandListener ?? new CommandListenerDefault <CommandReceiver>();

        this.m_CommandListener.iAttach(this);
    }
Esempio n. 2
0
 public CommandReceiver(ICommandInvoker commandInvoker = null, ICommandListenerLinked <CommandReceiver> commandListener = null)
 {
     implConstructor(ReceiverMode.Container, commandInvoker, commandListener);
 }
Esempio n. 3
0
 public CommandNotifierRedirect(ICommandListenerLinked <T> redirectionTarget)
 {
     m_RedirectionTarget = redirectionTarget;
 }
Esempio n. 4
0
 //////////////////////////////////////////////////////////////////////////
 public CommandPack(ICommandInvoker m_CommandInvoker = null, ICommandListenerLinked <CommandPack> m_CommandNotifier = null)
 {
     this.m_CommandInvoker  = m_CommandInvoker ?? new CommandInvokerDefault();
     this.m_CommandNotifier = m_CommandNotifier ?? new CommandListenerDefault <CommandPack>();
     this.m_CommandNotifier.iAttach(this);
 }