导表
This commit is contained in:
parent
77ebcfaa60
commit
bdf4bb6cd1
1
config/compound_tbl.json
Normal file
1
config/compound_tbl.json
Normal file
@ -0,0 +1 @@
|
||||
[{"id":99001,"type_id":0,"value":""},{"id":99002,"type_id":1,"value":"300"},{"id":99003,"type_id":1,"value":"30"},{"id":99004,"type_id":1,"value":"50"},{"id":99005,"type_id":1,"value":"0.8"},{"id":99006,"type_id":0,"value":""},{"id":99007,"type_id":0,"value":""},{"id":99008,"type_id":0,"value":""},{"id":99009,"type_id":0,"value":""},{"id":99010,"type_id":1,"value":"0"},{"id":99011,"type_id":1,"value":"2000"},{"id":99012,"type_id":1,"value":"6000"},{"id":99013,"type_id":1,"value":"2"}]
|
1
config/mission_tbl.json
Normal file
1
config/mission_tbl.json
Normal file
File diff suppressed because one or more lines are too long
25
src/config/parsers/compound_vo.ts
Normal file
25
src/config/parsers/compound_vo.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class compound_vo implements Cfg{
|
||||
name: "compound_vo";
|
||||
|
||||
public id: number;
|
||||
public type_id: number;
|
||||
public value: string;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.type_id = data.type_id;
|
||||
this.value = data.value;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
45
src/config/parsers/mission_vo.ts
Normal file
45
src/config/parsers/mission_vo.ts
Normal file
@ -0,0 +1,45 @@
|
||||
import {Cfg} from "../../common/DataParser";
|
||||
|
||||
export class mission_vo implements Cfg{
|
||||
name: "mission_vo";
|
||||
|
||||
public id: number;
|
||||
public number: number;
|
||||
public hp: number;
|
||||
public hpstar: number;
|
||||
public time: number;
|
||||
public timestar: number;
|
||||
public enemy: number;
|
||||
public enemystar: number;
|
||||
public beforehand_enemy: number;
|
||||
public magicweapon: string;
|
||||
public key1id: number;
|
||||
public key2id: number;
|
||||
public key3id: number;
|
||||
|
||||
public decode(data: any) {
|
||||
this.id = data.id;
|
||||
this.number = data.number;
|
||||
this.hp = data.hp;
|
||||
this.hpstar = data.hpstar;
|
||||
this.time = data.time;
|
||||
this.timestar = data.timestar;
|
||||
this.enemy = data.enemy;
|
||||
this.enemystar = data.enemystar;
|
||||
this.beforehand_enemy = data.beforehand_enemy;
|
||||
this.magicweapon = data.magicweapon;
|
||||
this.key1id = data.key1id;
|
||||
this.key2id = data.key2id;
|
||||
this.key3id = data.key3id;
|
||||
};
|
||||
|
||||
public isOK (uniqueID: number, param1: any, param2: any): boolean {
|
||||
if((param1 == undefined || param1 == null) && (param2 == undefined || param2 == null)){
|
||||
return this.id == uniqueID;
|
||||
}
|
||||
if(param2 == undefined || param2 == null){
|
||||
return this.id == uniqueID && this.id == param1;
|
||||
}
|
||||
return this.id == uniqueID && this.id == param1 && this.id == param2;
|
||||
};
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user