Exemplo n.º 1
0
 private void itemTriggered(object sender, ItemTriggeredArgs e)
 {
     if (this.Delay > 0)
     {
         this.handler.RequestCycle(new WiredCycle(this, e.TriggeringUser, e.item, this.Delay));
     }
     else
     {
         this.onTrigger(e.TriggeringUser, e.item);
     }
 }
Exemplo n.º 2
0
 private void itemTriggered(object sender, ItemTriggeredArgs e)
 {
     if (delay > 0)
     {
         triggeringQueue.Enqueue(e);
         handler.RequestCycle(this);
     }
     else
     {
         onTrigger(e);
     }
 }
Exemplo n.º 3
0
 private void itemTriggered(object sender, ItemTriggeredArgs e)
 {
     /*if (delay > 0)
      * {
      *  triggeringQueue.Enqueue(e);
      *  handler.RequestCycle(this);
      * }
      * else
      * {*/
     onTrigger(e);
     //}
 }
Exemplo n.º 4
0
 public bool OnCycle()
 {
     if (cycleCount > delay)
     {
         if (triggeringQueue.Count > 0)
         {
             lock (triggeringQueue.SyncRoot)
             {
                 while (triggeringQueue.Count > 0)
                 {
                     ItemTriggeredArgs e = (ItemTriggeredArgs)triggeringQueue.Dequeue();
                     onTrigger(e);
                 }
             }
         }
         return(false);
     }
     else
     {
         cycleCount++;
         return(true);
     }
 }
Exemplo n.º 5
0
 void item_itemRemovedEventHandler(object sender, ItemTriggeredArgs e)
 {
     e.TriggeringItem.itemRemovedEventHandler -= item_itemRemovedEventHandler;
     this.onItemRemove(e.TriggeringItem);
 }
Exemplo n.º 6
0
 private void onTrigger(ItemTriggeredArgs e)
 {
     handler.RequestStackHandle(item.Coordinate, e.TriggeringItem, e.TriggeringUser, Games.Team.none);
     handler.OnEvent(item.Id);
 }
Exemplo n.º 7
0
 private void onTrigger(ItemTriggeredArgs e)
 {
     handler.RequestStackHandle(item.Coordinate, e.TriggeringItem, e.TriggeringUser, Games.Team.none);
     handler.OnEvent(item.Id);
 }
Exemplo n.º 8
0
 private void itemTriggered(object sender, ItemTriggeredArgs e)
 {
     if (delay > 0)
     {
         triggeringQueue.Enqueue(e);
         handler.RequestCycle(this);
     }
     else
     {
         onTrigger(e);
     }
 }
Exemplo n.º 9
0
 private void onTrigger(ItemTriggeredArgs e)
 {
     handler.RequestStackHandle(item, e.TriggeringItem, e.TriggeringUser, Team.none);
     //InteractorGenericSwitch.DoAnimation(item);
 }
Exemplo n.º 10
0
 private void itemTriggered(object sender, ItemTriggeredArgs e)
 {
     GenericTriggerWithModes.DoAnimation(this.item);
     if (delay > 0)
     {
         triggeringQueue.Enqueue(e);
         handler.RequestCycle(this);
     }
     else
     {
         onTrigger(e);
     }
 }
Exemplo n.º 11
0
 private void onTrigger(ItemTriggeredArgs e)
 {
     handler.RequestStackHandle(item.GetX, item.GetY, e.TriggeringItem, e.TriggeringUser, Games.Team.none, item.Room);
     handler.OnEvent(item.Id);
 }