mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交代码
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "a5050452-3587-4ccd-a324-f7e7e1fb9cce",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -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;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "770fb39c-b04f-4c1c-9dff-105f01b099f6",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user