93 lines
3.3 KiB
TypeScript
93 lines
3.3 KiB
TypeScript
import {Cfg} from "../../common/DataParser";
|
|
|
|
export class SkillCfg implements Cfg{
|
|
name: "SkillCfg";
|
|
|
|
public id: number;
|
|
public skill_typeid: number;
|
|
public skill_indicateid: number;
|
|
public indicate_time: number;
|
|
public tigger_typeid: number;
|
|
public cond_typeid: number;
|
|
public cond_rangeid: number;
|
|
public cond_num: number;
|
|
public effect_typeid: number;
|
|
public friendlyid: number;
|
|
public targetid: number;
|
|
public ridicule: number;
|
|
public rangeid: number;
|
|
public select_targetID: number;
|
|
public eff_numtypeid: number;
|
|
public eff_num: number;
|
|
public eff_nummax: number;
|
|
public num_signid: number;
|
|
public edd_effid: number;
|
|
public edd_effnum: number;
|
|
public eddeffnum_signid: number;
|
|
public release_times: number;
|
|
public release_timesmax: number;
|
|
public quoteunitid: number;
|
|
public quoteunit_times: number;
|
|
public quoteunit_timesmax: number;
|
|
public quoteskillid: number;
|
|
public quoteskill_times: number;
|
|
public quoteskill_timesmax: number;
|
|
public skill_users: number;
|
|
public quotecardid: number;
|
|
public quotecard_times: number;
|
|
public quotecard_timesmax: number;
|
|
public getskillid: number;
|
|
public getskill_times: number;
|
|
public getskill_timesmax: number;
|
|
public skill_owners: number;
|
|
|
|
public decode(data: any) {
|
|
this.id = data.id;
|
|
this.skill_typeid = data.skill_typeid;
|
|
this.skill_indicateid = data.skill_indicateid;
|
|
this.indicate_time = data.indicate_time;
|
|
this.tigger_typeid = data.tigger_typeid;
|
|
this.cond_typeid = data.cond_typeid;
|
|
this.cond_rangeid = data.cond_rangeid;
|
|
this.cond_num = data.cond_num;
|
|
this.effect_typeid = data.effect_typeid;
|
|
this.friendlyid = data.friendlyid;
|
|
this.targetid = data.targetid;
|
|
this.ridicule = data.ridicule;
|
|
this.rangeid = data.rangeid;
|
|
this.select_targetID = data.select_targetID;
|
|
this.eff_numtypeid = data.eff_numtypeid;
|
|
this.eff_num = data.eff_num;
|
|
this.eff_nummax = data.eff_nummax;
|
|
this.num_signid = data.num_signid;
|
|
this.edd_effid = data.edd_effid;
|
|
this.edd_effnum = data.edd_effnum;
|
|
this.eddeffnum_signid = data.eddeffnum_signid;
|
|
this.release_times = data.release_times;
|
|
this.release_timesmax = data.release_timesmax;
|
|
this.quoteunitid = data.quoteunitid;
|
|
this.quoteunit_times = data.quoteunit_times;
|
|
this.quoteunit_timesmax = data.quoteunit_timesmax;
|
|
this.quoteskillid = data.quoteskillid;
|
|
this.quoteskill_times = data.quoteskill_times;
|
|
this.quoteskill_timesmax = data.quoteskill_timesmax;
|
|
this.skill_users = data.skill_users;
|
|
this.quotecardid = data.quotecardid;
|
|
this.quotecard_times = data.quotecard_times;
|
|
this.quotecard_timesmax = data.quotecard_timesmax;
|
|
this.getskillid = data.getskillid;
|
|
this.getskill_times = data.getskill_times;
|
|
this.getskill_timesmax = data.getskill_timesmax;
|
|
this.skill_owners = data.skill_owners;
|
|
};
|
|
|
|
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;
|
|
};
|
|
}; |