Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scoped static Models possible? #47

Open
dolanmiu opened this issue Oct 16, 2022 · 0 comments
Open

Scoped static Models possible? #47

dolanmiu opened this issue Oct 16, 2022 · 0 comments

Comments

@dolanmiu
Copy link

From the data-binding documentation:

https://delight-dev.github.io/Tutorials/DataBinding.html

namespace Delight
{
    public partial class Models
    {
        public static string MyModelValue = "Hello";
    }
}

Is it possible to have multiple of these partial classes? We have around 4 UIs, and having all 4 UIs in one single state file gets a little messy. We are thinking of appending HUD_ and INVENTORY_ to each value, but is there a better way? Ideally separate model files or something.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant