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

Multi-level hard coded / binaryformatter serialized path...? #31

Open
PascalSoftwares opened this issue Nov 30, 2020 · 3 comments
Open

Comments

@PascalSoftwares
Copy link

PascalSoftwares commented Nov 30, 2020

I downloaded and looked around package, but only realizing 'Getting started' is full of fixed-pathy autogenerations.
Delight editor plugin finds default paths from config file in specific path (asset root), and the path in config is fixed to specific structure (assets/Config/[subdirectories]), and its fallback paths is hardcoded in constant, and autogeneration tries to access template files from hardcoded fixed paths (assets/Delight/Content/Assets/[cs files], etc etc....

I thought I could modify a little to rearrange asset structure into comparted subdirectory, but it turned out like extremely hard.
It is disappointing If this structure is inevitable.

@patrik-u
Copy link
Collaborator

That is a limitation of the framework currently. You can specify the root folder of content (views, models, etc) but the name of the subdirectories are fixed. And there might be issues with hardcoded fixed paths (those should be relative to the Delight folder which is configurable but I haven't haven't tested this).

If you want to specify specific folders for specific content types (views, models, etc) then the framework need to be extended, with new configuration options to specify which directories to parse specific content from. If you want to take a crack at this I can help answer questions you have, I'm around at the discord chat as well for feedback.

Otherwise this is a feature I'll put in my TODO.

@amelkor
Copy link

amelkor commented Nov 30, 2020

It would be really nice to get Delight working under Plugins folder, that's where all 3rd party stuff usually end up in my case. Much more convenient rather then having a mess of folders in the Assets directory.

And the Content folder should remain under /Assets and be configurable

@patrik-u
Copy link
Collaborator

Getting it to work inside a Plugins folder is a bit trickier, it might work but a limitation could be that all the user content (views, models, assets, etc.) then also needs to reside within the Plugins folder just because partial classes need to reside within the same assembly. This applies to classes such as Assets and Models through which you access all the assets and models used by the framework, and used by the framework when doing data-binding, managing assets, etc.

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

3 participants