organism saving/loading

This commit is contained in:
MaxRobinsonTheGreat
2022-04-10 13:07:10 -05:00
parent 8005b5312c
commit dabeb4463d
7 changed files with 118 additions and 23 deletions

View File

@@ -0,0 +1,12 @@
const SerializeHelper = {
copyNonObjects(obj) {
let newobj = {};
for (let key in obj) {
if (typeof obj[key] !== 'object')
newobj[key] = obj[key];
}
return newobj;
}
}
module.exports = SerializeHelper;