皮肤添加

back_recharge
lvxinran 2020-10-31 04:53:56 +08:00
parent 4f3c4fc8fb
commit 4b53c7e5d0
3 changed files with 14 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public class Hero extends MongoBase {
private int changeId ;
private Set<String> jewelInfo = new HashSet<>();
private int skin;
public Hero(){
//绑定关系
this.setRootCollection(User._COLLECTION_NAME);
@ -303,4 +304,14 @@ public class Hero extends MongoBase {
public int getChangeId() {
return changeId;
}
public int getSkin() {
return skin;
}
public void setSkin(int skin) {
this.skin = skin;
updateString("skin",skin);
}
}

View File

@ -21,6 +21,8 @@ public class HeroManager extends MongoBase {
private Map<Integer,Integer> heroHandBook = new HashMap<>();
private Map<Integer,Integer> skinInfo = new HashMap<>();
private int firstTenth;

View File

@ -106,6 +106,7 @@ public class CBean2Proto {
.addAllJewels(hero.getJewelInfo())
.setCreatetype(hero.getCreateType())
.setChangeId(hero.getChangeId())
.setSkinId(hero.getSkin())
.build();
}