lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
24 lines • 742 B
JavaScript
import setupStruct from "./setupStruct";
import { setupSchema } from "../../interface/ISetup";
import { getAutoMount, setAutoMount } from "../../states/useAutoMount";
import unsafeGetValue from "../../utils/unsafeGetValue";
import unsafeSetValue from "../../utils/unsafeSetValue";
const settings = {
get autoMount() {
return getAutoMount();
},
set autoMount(value) {
setAutoMount(value);
}
};
for (const key of Object.keys(setupSchema))
Object.defineProperty(settings, key, {
get() {
return unsafeGetValue(setupStruct, key);
},
set(value) {
unsafeSetValue(setupStruct, key, value);
}
});
export default settings;
//# sourceMappingURL=index.js.map