Exemple #1
0
        private void Parse66004(Packet packet)
        {
            var token = JToken.Parse(packet.Message);

            raiseBirdInfo = RaiseBirdInfo.Parse(token);

            lbNameRaiseBird.Text = raiseBirdInfo.name;
            lbStar.Text          = String.Format("{0}", raiseBirdInfo.level);
            lbExpRaiseBird.Text  = String.Format("{0} / {1}", raiseBirdInfo.currentExperience, raiseBirdInfo.upgradeExperience);
        }
Exemple #2
0
        public static RaiseBirdInfo Parse(JToken token)
        {
            var result = new RaiseBirdInfo();

            var petInfo = token["petInfo"];

            result.name              = petInfo["name"].ToString();
            result.level             = ((int)petInfo["level"]) % 10;
            result.currentExperience = (long)petInfo["currentExperience"];
            result.upgradeExperience = (long)petInfo["upgradeExperience"];

            return(result);
        }