Exemple #1
0
        public static IntPtr createDeck()
        {
            IntPtr d = DLLcreateDeck();

            deck BJdeck = (deck)Marshal.PtrToStructure(d, typeof(deck));

            //(card)Marshal.PtrToStructure(Dstruct.cards[i], typeof(card));

            IntPtr d2 = DLLshuffle(ref BJdeck);

            deck BJdeck2 = (deck)Marshal.PtrToStructure(d2, typeof(deck));

            return(d2);
        }
Exemple #2
0
 public static extern void DLLdealerTurn(ref table t, ref deck d);
Exemple #3
0
 public static extern void DLLplayerTurn(ref table t, ref deck d, byte ans);
Exemple #4
0
 public static extern void DLLdealStartingHands(ref table t, ref deck d);
Exemple #5
0
 public static extern void DLLcleanUp(ref table t, ref deck d);
Exemple #6
0
 public static extern IntPtr DLLshuffle(ref deck d);