示例#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);
        }
示例#2
0
 public static extern void DLLdealerTurn(ref table t, ref deck d);
示例#3
0
 public static extern void DLLplayerTurn(ref table t, ref deck d, byte ans);
示例#4
0
 public static extern void DLLdealStartingHands(ref table t, ref deck d);
示例#5
0
 public static extern void DLLcleanUp(ref table t, ref deck d);
示例#6
0
 public static extern IntPtr DLLshuffle(ref deck d);