@Override protected boolean writeImpl() { writeShort(legionLogs.length); for (int i = 0; i < legionLogs.length; i++) { com.hifun.soul.gameserver.legion.LegionLog objlegionLogs = legionLogs[i]; writeString(objlegionLogs.getContent()); } return true; }
@Override protected boolean readImpl() { short count = 0; count = readShort(); count = count < 0 ? 0 : count; legionLogs = new com.hifun.soul.gameserver.legion.LegionLog[count]; for (int i = 0; i < count; i++) { com.hifun.soul.gameserver.legion.LegionLog objlegionLogs = new com.hifun.soul.gameserver.legion.LegionLog(); legionLogs[i] = objlegionLogs; objlegionLogs.setContent(readString()); } return true; }