更新获取属性
This commit is contained in:
parent
e1407d010f
commit
80694fa19f
|
|
@ -405,8 +405,7 @@ function _deepcopy(obj, copies) {
|
||||||
for (local i = 0; i< obj.len(); i++) {
|
for (local i = 0; i< obj.len(); i++) {
|
||||||
newObj[i] = _deepcopy(obj[i], copies);
|
newObj[i] = _deepcopy(obj[i], copies);
|
||||||
}
|
}
|
||||||
}
|
} else if (type == "table") {
|
||||||
else if (type == "table") {
|
|
||||||
newObj = {};
|
newObj = {};
|
||||||
copies[obj] <- newObj; // 在拷贝前记录
|
copies[obj] <- newObj; // 在拷贝前记录
|
||||||
|
|
||||||
|
|
@ -416,8 +415,7 @@ function _deepcopy(obj, copies) {
|
||||||
local newVal = _deepcopy(val, copies);
|
local newVal = _deepcopy(val, copies);
|
||||||
newObj[newKey] <- newVal;
|
newObj[newKey] <- newVal;
|
||||||
}
|
}
|
||||||
}
|
} else { // 类和实例(浅拷贝)
|
||||||
else { // 类和实例(浅拷贝)
|
|
||||||
newObj = obj;
|
newObj = obj;
|
||||||
copies[obj] <- newObj;
|
copies[obj] <- newObj;
|
||||||
}
|
}
|
||||||
|
|
@ -428,3 +426,7 @@ function _deepcopy(obj, copies) {
|
||||||
function sq_GetCharacterAttribute(address) {
|
function sq_GetCharacterAttribute(address) {
|
||||||
return L_sq_GetCharacterAttribute(address);
|
return L_sq_GetCharacterAttribute(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sq_GetCharacterEquipAttribute(offest, Slot) {
|
||||||
|
return L_sq_GetCharacterAttribute(offest, Slot);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue