예제 #1
0
 private void MajorModule_OnRightClickDown(On.MajorModule.orig_OnRightClickDown orig, MajorModule self, ClickDownInfo clickInfo)
 {
     // If the shift key is down, instead of doing it right away, add it to a queue.
     // Need to make sure that if it is a crystal, the orig is still called.
     // Only call this if it isn't a crystal!
     if (!self.IsCrystal)
     {
         if (ConditionalAddToQueue(new QueueData(self.RoomElement.ParentRoom, clickInfo)))
         {
             return;
         }
     }
     orig(self, clickInfo);
 }
예제 #2
0
 public QueueData(CrystalPanel panel, MajorModule module)
 {
     crystalPanel = panel;
     this.module  = module;
 }