M_hero.ts 1.0 KB

12345678910111213141516171819202122
  1. // ID:ID, name:英雄名称, grade_type:英雄品质, default_have:默认拥有, skill_id:技能, attribute:属性, atk:攻击力, icon:英雄图标, aspect:英雄形象, speed:移动速度, zoom_factor:缩放倍数
  2. export default class M_hero {
  3. private static data =
  4. {"1001":{"ID":1001,"name":"狂屠","grade_type":1,"default_have":1,"skill_id":1001,"attribute":1,"atk":15,"icon":"","aspect":"hero1001","speed":3.0,"zoom_factor":1.0}
  5. ,"1002":{"ID":1002,"name":"圣天使","grade_type":1,"default_have":1,"skill_id":1002,"attribute":2,"atk":15,"icon":"","aspect":"hero1002","speed":3.0,"zoom_factor":1.0}
  6. }// ID:ID, name:英雄名称, grade_type:英雄品质, default_have:默认拥有, skill_id:技能, attribute:属性, atk:攻击力, icon:英雄图标, aspect:英雄形象, speed:移动速度, zoom_factor:缩放倍数
  7. static getData(key: any): any {
  8. if (key == null || key == undefined)
  9. return null;
  10. return this.data[key];
  11. }
  12. static getAllData(): any {
  13. return this.data;
  14. }
  15. }