public void DeckRemove(int player, DuelCard duelcard) { duelData.deck[player].Remove(duelcard); duelData.SortCard(duelData.deck[player]); if (duel.IsPlayerOwn(player)) { deckOwn.DeckUpdate(player); } else { deckOps.DeckUpdate(player); } }
static int SortCard(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); DuelDataManager obj = (DuelDataManager)ToLua.CheckObject <DuelDataManager>(L, 1); System.Collections.Generic.List <DuelCard> arg0 = (System.Collections.Generic.List <DuelCard>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <DuelCard>)); obj.SortCard(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }