File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,11 @@ static func get_mod_data(mod_id: String) -> ModData:
110
110
return ModLoaderStore .mod_data [mod_id ]
111
111
112
112
113
+ # Gets the ModData of all loaded Mods as Dictionary.
114
+ static func get_mod_data_all () -> Dictionary :
115
+ return ModLoaderStore .mod_data
116
+
117
+
113
118
# Returns true if the mod with the given mod_id was successfully loaded.
114
119
static func is_mod_loaded (mod_id : String ) -> bool :
115
120
if ModLoaderStore .is_initializing :
Original file line number Diff line number Diff line change @@ -389,5 +389,5 @@ func deprecated_direct_access_UNPACKED_DIR() -> String:
389
389
390
390
391
391
func deprecated_direct_access_mod_data () -> Dictionary :
392
- ModLoaderDeprecated .deprecated_message ("The var \" mod_data\" was removed, use \" ModLoaderMod.get_mod_data ()\" instead" , "6.0.0" )
392
+ ModLoaderDeprecated .deprecated_message ("The var \" mod_data\" was removed, use \" ModLoaderMod.get_mod_data_all ()\" instead" , "6.0.0" )
393
393
return ModLoaderStore .mod_data
You can’t perform that action at this time.
0 commit comments