Example #1
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeLong(this.userId);
   data.writeString(this.userName);
   data.writeInt(this.career);
   data.writeInt(this.level);
 }
Example #2
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(list.size());
   for (FortGameLogArrayItem item : list) {
     data.writeString(item.getParamStr1());
     data.writeString(item.getParamStr2());
   }
 }
Example #3
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(list.size());
   for (UserIdNameArrayItem item : list) {
     data.writeLong(item.getUserId());
     data.writeString(item.getUserName());
     data.writeInt(item.getCareer());
     data.writeInt(item.getLevel());
   }
 }
Example #4
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeString(this.paramStr1);
   data.writeString(this.paramStr2);
 }