示例#1
0
        public bool Serialize(Stream stream)
        {
            BinaryWriter output = new BinaryWriter(stream);

            // isAi
            if (Yippee.Net.Internal.Serialize(output, isAi_) == false)
            {
                return(false);
            }
            // profile
            if (profile_.Serialize(stream) == false)
            {
                return(false);
            }
            // selectedCar
            if (selectedCar_.Serialize(stream) == false)
            {
                return(false);
            }
            // equippedAbility
            if (equippedAbility_.Serialize(stream) == false)
            {
                return(false);
            }
            // abilities
            if (abilities_.Serialize(stream) == false)
            {
                return(false);
            }
            // matchItems
            if (matchItems_.Serialize(stream) == false)
            {
                return(false);
            }

            return(true);
        }