Skip to content
This repository has been archived by the owner on Mar 5, 2021. 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 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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant