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:
110110 return ModLoaderStore .mod_data [mod_id ]
111111
112112
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+
113118# Returns true if the mod with the given mod_id was successfully loaded.
114119static func is_mod_loaded (mod_id : String ) -> bool :
115120 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:
389389
390390
391391func 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" )
393393 return ModLoaderStore .mod_data
You can’t perform that action at this time.
0 commit comments