Beispiel #1
0
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);

            // result
            if (Yippee.Net.Internal.Deserialize(input, out result_) == false)
            {
                return(false);
            }
            // updatedAbility
            if (updatedAbility_.Deserialize(stream) == false)
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);
            // infos
            uint infosLength = 0;

            if (Yippee.Net.Internal.Deserialize(input, out infosLength) == false)
            {
                return(false);
            }
            Array.Resize(ref infos_, (int)infosLength);
            for (uint i = 0; i < infosLength; ++i)
            {
                ability newInfos = new ability();
                if (newInfos.Deserialize(stream) == false)
                {
                    return(false);
                }
                infos_[i] = newInfos;
            }

            return(true);
        }