Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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));
     }
 }