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

Upgrade the loader to utilise Attributes #11

Open
12 tasks
1ForeverHD opened this issue Mar 31, 2021 · 0 comments
Open
12 tasks

Upgrade the loader to utilise Attributes #11

1ForeverHD opened this issue Mar 31, 2021 · 0 comments

Comments

@1ForeverHD
Copy link
Member

1ForeverHD commented Mar 31, 2021

This means items can be easily read, modified and written by the user, plugin and core.

image

To do:

  • How will this work with array and dictionary values? Do attributes even support this? (check all properties for tables/dicts too)
  • Rename Config to Configuration
  • Change Extensions class from Configuration to Folder (Configuration will be reserved for items with attributes)
  • Strongly consider removing Commands entirely from System and data saving
  • Learn how attributes work
  • Replace Configuration Module with a folder that contains folders such as 'Roles', 'Bans' and 'Settings'
  • Setup an attribute template for all of these (these will be a Configuration instance) OR Consider how the plugin will load new attributes
    • Have the plugin contain its own internal 'Config'
    • This is then used to build the config folder and attributes within the loader
  • Ensure the templates have an attribute called 'key' which points to the the original table key
  • The names of these config items can be anything they like (non important, dont save)
  • Have the Core Framework convert this data into the original module data on initialisation at runtime
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