mod_user_profile.gd 481 B

12345678910111213141516171819202122
  1. class_name ModUserProfile
  2. extends Resource
  3. ## This Class is used to represent a User Profile for the ModLoader.
  4. ## The name of the profile
  5. var name := ""
  6. ## A list of all installed mods
  7. ## [codeblock]
  8. ## "mod_list": {
  9. ## "Namespace-ModName": {
  10. ## "current_config": "default",
  11. ## "is_active": false,
  12. ## "zip_path": "",
  13. ## },
  14. ## [/codeblock]
  15. var mod_list := {}
  16. func _init(_name := "", _mod_list := {}) -> void:
  17. name = _name
  18. mod_list = _mod_list