M_ActivityTimeShopCFG.ts 889 B

1234567891011121314151617181920212223242526272829303132
  1. // ID:编号, ItemIDs:物品ID, ItemCounts:物品数量, weight:权重
  2. export default class M_ActivityTimeShopCFG {
  3. private static data =
  4. {"1":{"ID":1,"ItemIDs":[25],"ItemCounts":[1],"weight":1}
  5. ,"2":{"ID":2,"ItemIDs":[5],"ItemCounts":[10],"weight":20}
  6. ,"3":{"ID":3,"ItemIDs":[1],"ItemCounts":[20000],"weight":36}
  7. ,"4":{"ID":4,"ItemIDs":[24],"ItemCounts":[1],"weight":2}
  8. ,"5":{"ID":5,"ItemIDs":[8],"ItemCounts":[10],"weight":20}
  9. ,"6":{"ID":6,"ItemIDs":[16],"ItemCounts":[15],"weight":20}
  10. ,"7":{"ID":7,"ItemIDs":[26],"ItemCounts":[1],"weight":1}
  11. }// ID:编号, ItemIDs:物品ID, ItemCounts:物品数量, weight:权重
  12. static getData(key: any): any {
  13. if (key == null || key == undefined)
  14. return null;
  15. return this.data[key];
  16. }
  17. static getAllData(): any {
  18. return this.data;
  19. }
  20. }