Exemplo n.º 1
0
        public void Read(CryptoDataBuffer reader)
        {
            reader.ReadBlockStart(BLOCK);

            int version = reader.ReadCryptoIntUnchecked();

            //if (version != VERSION)
            //    throw new FormatException("ERR_UNSUPPORTED_VERSION");

            Level          = reader.ReadCryptoIntUnchecked();
            Experience     = reader.ReadCryptoIntUnchecked();
            ModifierPoints = reader.ReadCryptoIntUnchecked();
            SkillPoints    = reader.ReadCryptoIntUnchecked();
            DevotionPoints = reader.ReadCryptoIntUnchecked();
            TotalDevotion  = reader.ReadCryptoIntUnchecked();

            TotalStrength     = reader.ReadCryptoFloatUnchecked();
            TotalAgility      = reader.ReadCryptoFloatUnchecked();
            TotalIntelligence = reader.ReadCryptoFloatUnchecked();
            Health            = reader.ReadCryptoFloatUnchecked();
            Energy            = reader.ReadCryptoFloatUnchecked();

            // end marker
            reader.ReadBlockEnd();
        }