示例#1
0
 public static void Hu(int type, int card, List <int> cards)
 {
     Table.Hu hu = new Table.Hu();
     hu.hutype = type;
     hu.card   = card;
     hu.cards.AddRange(cards);
     NetClient.Instance().WriteMsg("Table.Hu", hu);
 }
示例#2
0
    public void hu(Table.Hu hu)
    {
        if (hu.err_no == 0)
        {
            //QuickTips.ShowRedQuickTips(hu.id+"胡了");
            EventDispatcher.Instance.Dispatch <int, int, List <int>, int, int>(GameEventConst.HU, hu.id, hu.from, hu.cards, hu.card, hu.exttype);
            if (hu.id == hu.from)
            {
                SoundMgr._instance.soundPlay("zimo_" + (RoleController.Instance.getPlayerById(hu.id).Sex ? "0" : "1") + "_" + GameConst.Language, GameConst.soundVol);
            }
            else
            {
                SoundMgr._instance.soundPlay("chihu_" + (RoleController.Instance.getPlayerById(hu.id).Sex ? "0" : "1") + "_" + GameConst.Language, GameConst.soundVol);
            }
        }

        //else
        //QuickTips.ShowRedQuickTips("hu___" + hu.err_no);
    }