コード例 #1
0
 /// <summary>
 /// 设置赌金
 /// </summary>
 /// <param name="client"></param>
 /// <param name="wager"></param>
 private void setWager(ClientPeer client, int wager)
 {
     SingleExecute.Instance.Execute(
         delegate()
     {
         if (userCache.IsOnline(client) == false)
         {
             return;
         }
         //必须确保在线
         int userId = userCache.GetId(client);
         //获取战斗房间
         _21MutiFightRoom room = fightCache.GetRoomByUId(userId);
         room.setWager(userId, wager);
     });
 }