示例#1
0
        protected override YxBaseGameUserInfo OnInitUser(ISFSObject userData)
        {
            var user = new Brnn3DUserInfo();

            user.Parse(userData);
            return(user);
        }
示例#2
0
        public void SetBankerInfoUIData()
        {
            var gdata = App.GetGameData <Brnn3dGameData>();

            if (_record == -1)
            {
                _record = gdata.B;
            }

            if (_record != gdata.B)
            {
                gdata.Frame++;
                gdata.Bundle        = 0;
                Banker.WinTotalCoin = 0;
            }

            _record = gdata.B;

            if (gdata.BankList == null || gdata.BankList.Size() < 1)
            {
                Banker.Info = GetSysBanker();
                return;
            }
            var old = Banker.GetInfo <Brnn3DUserInfo>();

            Banker.Info = null;
            var bankList  = gdata.BankList;
            var hasBanker = false;

            foreach (ISFSObject banber in bankList)
            {
                var user = new Brnn3DUserInfo();
                user.Parse(banber);
                if (user.Seat == gdata.B)
                {
                    Banker.Info = user;
                    if (old != null && old.Seat == gdata.B)
                    {
                        Banker.WinTotalCoin = old.WinTotalCoin;
                    }
                    hasBanker = true;
                }
                else
                {
                    var bankerListBg = App.GetGameManager <Brnn3DGameManager>().TheUpUICtrl.TheBankersManager;
                    bankerListBg.TheBankerListUI.SetBankerListUI(user.NickM, user.CoinA);
                }
            }
            if (!hasBanker)
            {
                Banker.Info = GetSysBanker();
            }
        }
示例#3
0
        public Brnn3DUserInfo GetSysBanker()
        {
            if (!HasSystemBanker)
            {
                return(null);
            }
            var banker = new Brnn3DUserInfo
            {
                NickM = "系统庄"
            };

            return(banker);
        }