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); }
public static extern void DLLdealerTurn(ref table t, ref deck d);
public static extern void DLLplayerTurn(ref table t, ref deck d, byte ans);
public static extern void DLLdealStartingHands(ref table t, ref deck d);
public static extern void DLLcleanUp(ref table t, ref deck d);
public static extern IntPtr DLLshuffle(ref deck d);