Esempio n. 1
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeLong(this.userId);
   data.writeString(this.userName);
   data.writeInt(this.career);
   data.writeInt(this.level);
 }
Esempio n. 2
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(list.size());
   for (FortGameLogArrayItem item : list) {
     data.writeString(item.getParamStr1());
     data.writeString(item.getParamStr2());
   }
 }
Esempio n. 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());
   }
 }
Esempio n. 4
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeString(this.paramStr1);
   data.writeString(this.paramStr2);
 }