山河社稷图

back_recharge
mengchengzhen 2021-05-11 21:36:22 +08:00
parent f561f686e9
commit 8ab1fafc40
2 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class HardStageChapter extends MongoBase {
public void addNodeList(HardStageNode node) { public void addNodeList(HardStageNode node) {
this.nodeList.add(node); this.nodeList.add(node);
node.init(this.getRootId(), getMongoKey() + ".nodeList." + node.getId()); node.init(this.getRootId(), getMongoKey() + ".nodeList." + node.getId());
updateString("nodeList." + node.getId(), node); updateString("nodeList" ,nodeList);
} }
public int getStars() { public int getStars() {

View File

@ -19,6 +19,7 @@ public class HardStageNode extends MongoBase {
public void setId(int id) { public void setId(int id) {
this.id = id; this.id = id;
updateString("id" , this.id);
} }
public int getType() { public int getType() {
@ -27,6 +28,7 @@ public class HardStageNode extends MongoBase {
public void setType(int type) { public void setType(int type) {
this.type = type; this.type = type;
updateString("type" , this.type);
} }
public int getState() { public int getState() {
@ -35,6 +37,7 @@ public class HardStageNode extends MongoBase {
public void setState(int state) { public void setState(int state) {
this.state = state; this.state = state;
updateString("state" , this.state);
} }
public Map<Integer, Boolean> getRewardMap() { public Map<Integer, Boolean> getRewardMap() {
@ -51,5 +54,6 @@ public class HardStageNode extends MongoBase {
public void setHasPass(boolean hasPass) { public void setHasPass(boolean hasPass) {
this.hasPass = hasPass; this.hasPass = hasPass;
updateString("hasPass" , this.hasPass);
} }
} }