Пример #1
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.userId = data.getLong();
   this.userName = data.getString();
   this.career = data.getInt();
   this.level = data.getInt();
 }
Пример #2
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeLong(this.userId);
   data.writeString(this.userName);
   data.writeInt(this.career);
   data.writeInt(this.level);
 }
Пример #3
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(list.size());
   for (IndexArrayItem item : list) {
     data.writeInt(item.getIndex());
   }
 }
Пример #4
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeLong(this.userId);
   data.writeInt(this.formationId);
   placeIDArray2.encode(data);
   data.writeInt(this.zhanli);
 }
Пример #5
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(list.size());
   for (FortGameLogArrayItem item : list) {
     data.writeString(item.getParamStr1());
     data.writeString(item.getParamStr2());
   }
 }
Пример #6
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.userId = data.getLong();
   this.formationId = data.getInt();
   placeIDArray2 = PlaceIDArray2.create();
   placeIDArray2.decode(data);
   this.zhanli = data.getInt();
 }
Пример #7
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(list.size());
   for (PrincessPropertyArrayItem item : list) {
     data.writeInt(item.getPropertyKey());
     data.writeInt(item.getLevel());
     data.writeInt(item.getExperience());
   }
 }
Пример #8
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   int size = data.getInt();
   for (int i = 0; i < size; i++) {
     IndexArrayItem item = IndexArrayItem.create();
     item.setIndex(data.getInt());
     list.add(item);
   }
 }
Пример #9
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   int size = data.getInt();
   for (int i = 0; i < size; i++) {
     FortGameLogArrayItem item = FortGameLogArrayItem.create();
     item.setParamStr1(data.getString());
     item.setParamStr2(data.getString());
     list.add(item);
   }
 }
Пример #10
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());
   }
 }
Пример #11
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   int size = data.getInt();
   for (int i = 0; i < size; i++) {
     PrincessPropertyArrayItem item = PrincessPropertyArrayItem.create();
     item.setPropertyKey(data.getInt());
     item.setLevel(data.getInt());
     item.setExperience(data.getInt());
     list.add(item);
   }
 }
Пример #12
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   int size = data.getInt();
   for (int i = 0; i < size; i++) {
     UserIdNameArrayItem item = UserIdNameArrayItem.create();
     item.setUserId(data.getLong());
     item.setUserName(data.getString());
     item.setCareer(data.getInt());
     item.setLevel(data.getInt());
     list.add(item);
   }
 }
Пример #13
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.propertyKey = data.getInt();
   this.level = data.getInt();
   this.experience = data.getInt();
 }
Пример #14
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(this.propertyKey);
   data.writeInt(this.level);
   data.writeInt(this.experience);
 }
Пример #15
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(this.storyLineId);
 }
Пример #16
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.index = data.getInt();
 }
Пример #17
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeInt(this.index);
 }
Пример #18
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.paramStr1 = data.getString();
   this.paramStr2 = data.getString();
 }
Пример #19
0
 /** 编码 */
 @Override
 public void encode(Data data) {
   data.writeString(this.paramStr1);
   data.writeString(this.paramStr2);
 }
Пример #20
0
 /** 解码 */
 @Override
 public void decode(Data data) {
   this.storyLineId = data.getInt();
 }