大侠
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
409 B

import { log } from "cc";
import BaseData from "./BaseData";
/**
* 数据处理工具
*/
export default class DataT {
/**
* 数据模板装饰器
* @param _data 数据模板
*/
public static DecorateDataTemplate(_data: { new(): BaseData }) {
return function (target: any) {
//设置数据模板
target.prototype.dataTemplate = _data;
}
}
}