逐步 去掉 主英雄设定
This commit is contained in:
@@ -2,7 +2,7 @@ import { VM } from "../../../../extensions/oops-plugin-framework/assets/libs/mod
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { Initialize } from "../initialize/Initialize";
|
||||
import { GameMap } from "../map/GameMap";
|
||||
import { MissionData, VmInfo } from "./config/Mission";
|
||||
import { HeroUI, MissionData, VmInfo } from "./config/Mission";
|
||||
|
||||
|
||||
// import { Role } from "../role/Role";
|
||||
@@ -37,21 +37,20 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
vmdata: any = {
|
||||
game_over:false,
|
||||
game_pause:false,
|
||||
mission_data:{
|
||||
|
||||
},
|
||||
hero:{
|
||||
|
||||
},
|
||||
|
||||
boss:{
|
||||
|
||||
},
|
||||
mission_data:{ },
|
||||
hero:{ },
|
||||
hero1:{},
|
||||
hero2:{},
|
||||
hero3:{},
|
||||
boss:{ },
|
||||
};
|
||||
vmAdd() {
|
||||
this.vmdata.mission_data=JSON.parse(JSON.stringify(MissionData))
|
||||
this.vmdata.hero=JSON.parse(JSON.stringify(VmInfo))
|
||||
this.vmdata.boss=JSON.parse(JSON.stringify(VmInfo))
|
||||
this.vmdata.hero1=JSON.parse(JSON.stringify(HeroUI))
|
||||
this.vmdata.hero2=JSON.parse(JSON.stringify(HeroUI))
|
||||
this.vmdata.hero3=JSON.parse(JSON.stringify(HeroUI))
|
||||
VM.add(this.vmdata, "data");
|
||||
|
||||
}
|
||||
|
||||
@@ -110,7 +110,15 @@ export const MissionData = {
|
||||
skill_stone_max:10,//技能石最大数量
|
||||
refresh_count:5,//刷新次
|
||||
}
|
||||
|
||||
export const HeroUI = {
|
||||
uuid:0,
|
||||
name:"",
|
||||
count:0,
|
||||
hp:0,
|
||||
hp_max:0,
|
||||
cd:0,
|
||||
cd_max:0,
|
||||
}
|
||||
export const VmInfo = {
|
||||
hp:0,
|
||||
hp_max:0,
|
||||
|
||||
Reference in New Issue
Block a user