提交代码

This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-17 18:36:59 +08:00
parent 8ad2313502
commit 1b4db3c980
46 changed files with 1518 additions and 667 deletions

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "a5050452-3587-4ccd-a324-f7e7e1fb9cce",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,24 @@
import { TD } from "../../../../../App";
import { TbGEntity } from "../../../../../config/data/schema";
import GAttributeBase from "../GAttributeBase";
//默认属性
export default class GDefaultAttribute extends GAttributeBase{
update() { }
set(info:TbGEntity.TAttributeValue[]){
this.attributes = {};
//获取全部属性信息
TD.TbGAttribute.getDataList().forEach(attr => {
//默认 0
this.attributes[attr.id] = 0;
});
info.forEach(item => this.attributes[item.id] += item.value);
return this;
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "770fb39c-b04f-4c1c-9dff-105f01b099f6",
"files": [],
"subMetas": {},
"userData": {}
}