back_recharge
parent
5911e2dc8f
commit
afe97f00e7
|
@ -1249,14 +1249,14 @@ public class CBean2Proto {
|
||||||
*/
|
*/
|
||||||
public static List<CommonProto.TransformationCardInfo> getTransformationInfoList(User user){
|
public static List<CommonProto.TransformationCardInfo> getTransformationInfoList(User user){
|
||||||
List<CommonProto.TransformationCardInfo> list = new ArrayList<>();
|
List<CommonProto.TransformationCardInfo> list = new ArrayList<>();
|
||||||
user.getHeroManager().getTransformationList().values().forEach((value)->{
|
for (TransformationInfo value : user.getHeroManager().getTransformationList().values()) {
|
||||||
CommonProto.TransformationCardInfo builder = CommonProto.TransformationCardInfo.newBuilder()
|
CommonProto.TransformationCardInfo builder = CommonProto.TransformationCardInfo.newBuilder()
|
||||||
.setId(value.getIndex())
|
.setId(value.getCardId())
|
||||||
.setIndex(value.getIndex())
|
.setIndex(value.getIndex())
|
||||||
.setStatus(value.getStatus())
|
.setStatus(value.getStatus())
|
||||||
.build();
|
.build();
|
||||||
list.add(builder);
|
list.add(builder);
|
||||||
});
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue