Spaces:
Build error
Build error
Download ui/src/phaser3-rex-plugins/templates/spinner/ObjectFactory.js from AgentVerse/agentVerse: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/AgentVerse/agentVerse/resolve/main/ui/src/phaser3-rex-plugins/templates/spinner/ObjectFactory.js
- Command line
-
hf download hf://spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/spinner/ObjectFactory.js
-
curl -L -o ObjectFactory.js https://huggingface.co/spaces/AgentVerse/agentVerse/resolve/main/ui/src/phaser3-rex-plugins/templates/spinner/ObjectFactory.js
480 Bytes
| class ObjectFactory { | |
| constructor(scene) { | |
| this.scene = scene; | |
| this.displayList = scene.sys.displayList; | |
| this.updateList = scene.sys.updateList; | |
| scene.events.once('destroy', this.destroy, this); | |
| } | |
| destroy() { | |
| this.scene = null; | |
| this.displayList = null; | |
| this.updateList = null; | |
| } | |
| static register(type, callback) { | |
| ObjectFactory.prototype[type] = callback; | |
| } | |
| }; | |
| export default ObjectFactory; |