示例#1
0
        /* --- Instance Methods (Auxiliary) --- */
        private void OnMsgAccountInfoResponse(HSInfo.Message msg)
        {
            var c = (MsgAccountInfoResponse)msg;

            SetAccountName(c.Name);
            GoldLabel.Set(c.Gold);
            DustLabel.Set(c.Dust);
            PacksLabel.Set(c.Packs);
            RankLabel.Set(c.Rank, c.Stars);
        }
示例#2
0
        private void OnMsgCurrencyBalance(HSInfo.Message msg)
        {
            var c = (MsgCurrencyBalance)msg;

            switch (c.Type)
            {
            case MsgCurrencyBalance.CurrencyType.GOLD:
                GoldLabel.Set(c.Amount);
                break;

            case MsgCurrencyBalance.CurrencyType.DUST:
                DustLabel.Set(c.Amount);
                break;

            case MsgCurrencyBalance.CurrencyType.PACKS:
                PacksLabel.Set(c.Amount);
                break;
            }
        }