12345678910111213141516171819202122 |
- import { AssetsHelper } from "../framework/asset/AssetsHelper";
- import JsonManager from "../framework/json/JsonManager";
- const { ccclass, property } = cc._decorator;
- @ccclass
- class buffDtManager {
- /**
- *
- * @param id buffID
- * @returns 当前物品数据列表
- */
- public getDataByID(id: number) {
- let data = JsonManager.getInstance().GetDataByName(AssetsHelper.BUFF_DATA_JSON);
- let buffDt = data[id]
- if (buffDt) {
- return buffDt;
- }
- }
- }
- export default new buffDtManager()
|