Ejemplo n.º 1
0
        public bool Serialize(Stream stream)
        {
            BinaryWriter output = new BinaryWriter(stream);

            // result
            if (Yippee.Net.Internal.Serialize(output, result_) == false)
            {
                return(false);
            }
            // infos
            if (infos_.Serialize(stream) == false)
            {
                return(false);
            }
            // slot
            if (slot_.Serialize(stream) == false)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
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);
        }