#28 tileset 渲染

This commit is contained in:
YHH
2020-08-14 08:54:27 +08:00
parent 9111b69cee
commit a2a73562a0
8 changed files with 130 additions and 106 deletions

View File

@@ -20,7 +20,13 @@ class ObjectUtils {
public static elements(p: {}){
let c = [];
for (let i in p){
c.push(p[i]);
if (Array.isArray(p[i])){
for (let v of p[i]){
c.push(v);
}
}else{
c.push(p[i]);
}
}
return c;