public void Serialize(IByteStream stream)
        {
            stream.SerializeString(ref Name, Encoding.ASCII);
            stream.Serialize(ref Health);
            stream.Serialize(ref Speed);

            Inventory.Serialize(stream);
        }
 public static void Serialize(this IByteStream stream, ref Vector3 vector)
 {
     stream.Serialize(ref vector.X);
     stream.Serialize(ref vector.Y);
     stream.Serialize(ref vector.Z);
 }