Exemplo n.º 1
0
 public void SerializeInto(BinaryWriter writer)
 {
     Daywear.SerializeInto(writer);
     Swimwear.SerializeInto(writer);
     Sleepwear.SerializeInto(writer);
 }
Exemplo n.º 2
0
        public override void SerializeInto(BinaryWriter writer)
        {
            base.SerializeInto(writer);

            writer.Write(Animations.Length);
            foreach (var item in Animations)
            {
                item.SerializeInto(writer);
            }

            writer.Write(CarryAnimationState != null);
            if (CarryAnimationState != null)
            {
                CarryAnimationState.SerializeInto(writer);
            }

            writer.Write(Message);
            writer.Write(MessageTimeout);

            writer.Write(MotiveChanges.Length);
            foreach (var item in MotiveChanges)
            {
                item.SerializeInto(writer);
            }
            MotiveDecay.SerializeInto(writer);
            writer.Write(PersonData.Length);
            writer.Write(VMSerializableUtils.ToByteArray(PersonData));
            //foreach (var item in PersonData) { writer.Write(item); }
            writer.Write(MotiveData.Length);
            writer.Write(VMSerializableUtils.ToByteArray(MotiveData));
            //foreach (var item in MotiveData) { writer.Write(item); }
            writer.Write(HandObject);
            writer.Write(RadianDirection);

            writer.Write(KillTimeout);

            DefaultSuits.SerializeInto(writer);
            DynamicSuits.SerializeInto(writer);
            Decoration.SerializeInto(writer);

            writer.Write(BoundAppearances.Length);
            foreach (var item in BoundAppearances)
            {
                writer.Write(item);
            }

            if (BodyOutfit == null)
            {
                writer.Write((ulong)0);
            }
            else
            {
                BodyOutfit.SerializeInto(writer);
            }
            if (HeadOutfit == null)
            {
                writer.Write((ulong)0);
            }
            else
            {
                HeadOutfit.SerializeInto(writer);
            }
            writer.Write((byte)SkinTone);
        }