Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     game = new Microsoft.Xna.Framework.Game();
     IM   = new GuitarInput(game);
     skin = new InputSkin(game, IM);
 }
Ejemplo n.º 2
0
        static public IEnumerable <InputSkin[]> Combinations(InputSkin[] elem, int start, int skip)
        {
            int size = elem.Length - 10;

            int[] numbers = new int[10] {
                0, 1, 2, 3, 4, 5, 6, 7, 8, 9
            };
            long step = -start;

            InputSkin[] resultList = new InputSkin[10];

            do
            {
                if (step++ % skip == 0)
                {
                    for (int i = 0; i < 10; ++i)
                    {
                        resultList[i] = elem[numbers[i]];
                    }
                    yield return(resultList);
                }
            } while (NextCombination(numbers, size));
        }
Ejemplo n.º 3
0
 internal int CompareTo(InputSkin b)
 {
     return(WearValue > b.WearValue ? 1 : (WearValue < b.WearValue ? -1 : 0));
 }