@Override protected boolean writeImpl() { writeInteger(humanLegionTitleInfo.getTitleId()); writeString(humanLegionTitleInfo.getTitelName()); writeBoolean(humanLegionTitleInfo.getIsAllProperty()); writeInteger(humanLegionTitleInfo.getPropertyId()); writeInteger(humanLegionTitleInfo.getPropertyRate()); writeString(humanLegionTitleInfo.getEndTime()); writeBoolean(humanLegionTitleInfo.getValid()); return true; }
@Override protected boolean readImpl() { humanLegionTitleInfo = new com.hifun.soul.gameserver.legion.info.HumanLegionTitleInfo(); humanLegionTitleInfo.setTitleId(readInteger()); humanLegionTitleInfo.setTitelName(readString()); humanLegionTitleInfo.setIsAllProperty(readBoolean()); humanLegionTitleInfo.setPropertyId(readInteger()); humanLegionTitleInfo.setPropertyRate(readInteger()); humanLegionTitleInfo.setEndTime(readString()); humanLegionTitleInfo.setValid(readBoolean()); return true; }