Skip to content
This repository has been archived by the owner. It is now read-only.

typescript: Generate a live-updated typed asset tree #35

Open
elisee opened this issue Jan 20, 2016 · 0 comments
Open

typescript: Generate a live-updated typed asset tree #35

elisee opened this issue Jan 20, 2016 · 0 comments

Comments

@elisee
Copy link
Contributor

@elisee elisee commented Jan 20, 2016

This will make renaming and reparenting assets much less risky since errors will automatically be reported in the editor if an asset no longer exists. Also, the returned asset will have the correct type right away (no need for Sup.get("Some Asset", Sup.SomeAssetType)).

Something like that:

    Sup.entries["World Map"]["Mushroom"].asset
    Sup.entries["World Map"]["Mushroom"].loadAsset(() => {});
    Sup.entries["World Map"]["Mushroom"].cloneFromStorage((newAsset) => {
      // ...
    });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant