Example #1
0
 public DireWolfAlpha()
 {
     CardAbility =
         new AuraDriver
         <
             StandardAura
             <
                 ChangeDamage
                 <
                     PrimaryCardBothSidesFilter, ONE, Plus, InDeskFilter,
                     RestoreDamage <PrimaryServantFilter, ONE, Minus, InDeskFilter, NullEvent>
                 >
             >,
             InDeskFilter,
             ServantInDeskEvent
         >(this);
 }
Example #2
0
 public OldMurkEye()
 {
     CardAbility =
         new AuraDriver
         <
             StandardAura
             <
                 ChangeDamage
                 <
                     TertiaryFilter, ExtractCardDamage <RaceFilter <Murloc>, InDeskFilter>, Plus, InDeskFilter,
                     RestoreDamage <TertiaryFilter, ExtractCardDamage <RaceFilter <Murloc>, InDeskFilter>, Minus, InDeskFilter, NullEvent>
                 >
             >,
             InDeskFilter,
             ServantInDeskEvent
         >(this);
 }
Example #3
0
        static void Main(string[] args)
        {
            AuraDriver driver = new AuraDriver();

            int[] handles = driver.GetMotherboardControllers();
            Console.WriteLine("Found " + handles.Length);

            for (int x = 0; x < 10; x++)
            {
                foreach (int h in handles)
                {
                    Console.WriteLine("Handle " + h);
                    driver.SetMotherboardApplicationMode(h);
                    int ledCount = driver.GetMotherboardLedCount(h);
                    Console.WriteLine("Found " + ledCount);

                    LedColor[] colors = driver.GetMotherboardColors(h);
                    foreach (LedColor color in colors)
                    {
                        Console.WriteLine(color);
                        byte t = color.Red;
                        color.Red   = color.Green;
                        color.Green = color.Blue;
                        color.Blue  = t;
                    }
                    if (x == 0)
                    {
                        colors = startingColors;
                    }
                    driver.SetMotherboardColors(h, colors);
                }
                System.Threading.Thread.Sleep(2000);
            }

            foreach (int h in handles)
            {
                driver.SetMotherboardDefaultMode(h);
            }
        }