Ejemplo n.º 1
0
 @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;
 }
Ejemplo n.º 2
0
 @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;
 }