public void SendHost(RoomType roomtype, string password, int banlist, RoomRules rules, int cardsbyhand, int startduellp, int masterrules, int drawcount, bool noShuffleDeck, string captiontext)
 {
     Client.Send(PacketType.DuelHost, new StandardClientDuelHost
     {
         Config = new RoomConfig
         {
             Type          = roomtype,
             Banlist       = banlist,
             Rules         = rules,
             CardByHand    = cardsbyhand,
             StartDuelLP   = startduellp,
             MasterRules   = masterrules,
             DrawCount     = drawcount,
             NoShuffleDeck = noShuffleDeck,
             CaptionText   = captiontext
         },
         RoomPass = password
     });
 }
 public void SendShadowDuelRequest(int id, string password, RoomType roomtype, int banlist, RoomRules rules, int cardsbyhand, int startduellp, int masterrules, int drawcount, bool noShuffleDeck, string captiontext, BetType btype, Bet bet = null)
 {
     Client.Send(PacketType.ShadowDuelRequest, new StandardClientShadowDuelRequest
     {
         TargetId = id,
         Config   = new RoomConfig
         {
             Type          = roomtype,
             Banlist       = banlist,
             Rules         = rules,
             CardByHand    = cardsbyhand,
             StartDuelLP   = startduellp,
             MasterRules   = masterrules,
             DrawCount     = drawcount,
             NoShuffleDeck = noShuffleDeck,
             CaptionText   = captiontext
         },
         BType         = btype,
         BetSerealized = JsonConvert.SerializeObject(bet)
     });
 }