皮肤添加
parent
4f3c4fc8fb
commit
4b53c7e5d0
|
@ -50,6 +50,7 @@ public class Hero extends MongoBase {
|
||||||
private int changeId ;
|
private int changeId ;
|
||||||
private Set<String> jewelInfo = new HashSet<>();
|
private Set<String> jewelInfo = new HashSet<>();
|
||||||
|
|
||||||
|
private int skin;
|
||||||
public Hero(){
|
public Hero(){
|
||||||
//绑定关系
|
//绑定关系
|
||||||
this.setRootCollection(User._COLLECTION_NAME);
|
this.setRootCollection(User._COLLECTION_NAME);
|
||||||
|
@ -303,4 +304,14 @@ public class Hero extends MongoBase {
|
||||||
public int getChangeId() {
|
public int getChangeId() {
|
||||||
return changeId;
|
return changeId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getSkin() {
|
||||||
|
return skin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSkin(int skin) {
|
||||||
|
this.skin = skin;
|
||||||
|
updateString("skin",skin);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,8 @@ public class HeroManager extends MongoBase {
|
||||||
|
|
||||||
private Map<Integer,Integer> heroHandBook = new HashMap<>();
|
private Map<Integer,Integer> heroHandBook = new HashMap<>();
|
||||||
|
|
||||||
|
private Map<Integer,Integer> skinInfo = new HashMap<>();
|
||||||
|
|
||||||
private int firstTenth;
|
private int firstTenth;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,7 @@ public class CBean2Proto {
|
||||||
.addAllJewels(hero.getJewelInfo())
|
.addAllJewels(hero.getJewelInfo())
|
||||||
.setCreatetype(hero.getCreateType())
|
.setCreatetype(hero.getCreateType())
|
||||||
.setChangeId(hero.getChangeId())
|
.setChangeId(hero.getChangeId())
|
||||||
|
.setSkinId(hero.getSkin())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue