Exemplo n.º 1
0
 /// <summary>Registers an event handler with the action list.</summary>
 public void RegisterAction(string name, string description, ActionHandlerDelegate handler, TKey trigger, object state)
 {
     if (!m_actionlist.ContainsKey(name))
     {
         Action action = new Action(this, name, description, trigger, handler, state);
         m_actionlist[name] = action;
     }
 }
Exemplo n.º 2
0
 public Action(Actions <TKey> parent, string name, string description, TKey trigger, ActionHandlerDelegate handler, object state)
 {
     m_parent      = parent;
     m_name        = name;
     m_description = description;
     m_handler     = handler;
     m_state       = state;
     m_toggle      = false;
     m_trigger     = trigger;
     m_default     = trigger;
     m_parent.Bind(this, trigger);
 }
Exemplo n.º 3
0
 public Action(Actions <TKey> parent, string name, string description, TKey trigger, ActionHandlerDelegate handler) : this(parent, name, description, trigger, handler, null)
 {
 }
Exemplo n.º 4
0
 /// <summary>Registers an event handler with the action list.</summary>
 public void RegisterAction(string name, string description, ActionHandlerDelegate handler, TKey trigger)
 {
     RegisterAction(name, description, handler, trigger, null);
 }