@Override
  public void serialize(DataWriter writer) {

    super.serialize(writer);

    writer.write_ui16(object.length);

    for (int i = 0; i < object.length; i++) {

      object[i].serialize(writer);
    }
  }
  @Override
  public void deserialize(DataReader reader) {

    super.deserialize(reader);

    int object_length = reader.read_ui16();

    this.object = new com.ankamagames.dofus.network.types.game.data.items.ObjectItem[object_length];

    for (int i = 0; i < object_length; i++) {

      com.ankamagames.dofus.network.types.game.data.items.ObjectItem object_it =
          new com.ankamagames.dofus.network.types.game.data.items.ObjectItem();

      object_it.deserialize(reader);
      this.object[i] = object_it;
    }
  }