From 6028a4d33eca93c63a6c82c367004067450e1fcc Mon Sep 17 00:00:00 2001 From: Chris Bloomfield <43499897+ithinkandicode@users.noreply.github.com> Date: Wed, 1 Mar 2023 23:35:57 +0000 Subject: [PATCH] Refactor: Move `class_name` to be before `extends` --- addons/mod_loader/classes/mod_data.gd | 2 +- addons/mod_loader/classes/mod_manifest.gd | 3 ++- addons/mod_loader/mod_loader_utils.gd | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/mod_loader/classes/mod_data.gd b/addons/mod_loader/classes/mod_data.gd index 58415b84..64d48d93 100644 --- a/addons/mod_loader/classes/mod_data.gd +++ b/addons/mod_loader/classes/mod_data.gd @@ -1,5 +1,5 @@ -extends Resource class_name ModData +extends Resource # Stores and validates all Data required to load a mod successfully # If some of the data is invalid, [member is_loadable] will be false diff --git a/addons/mod_loader/classes/mod_manifest.gd b/addons/mod_loader/classes/mod_manifest.gd index aa7d6e0f..b0605101 100644 --- a/addons/mod_loader/classes/mod_manifest.gd +++ b/addons/mod_loader/classes/mod_manifest.gd @@ -1,6 +1,7 @@ +class_name ModManifest extends Resource + # Stores and validates contents of the manifest set by the user -class_name ModManifest const LOG_NAME := "ModLoader:ModManifest" diff --git a/addons/mod_loader/mod_loader_utils.gd b/addons/mod_loader/mod_loader_utils.gd index b06ec06b..e2b30a14 100644 --- a/addons/mod_loader/mod_loader_utils.gd +++ b/addons/mod_loader/mod_loader_utils.gd @@ -1,5 +1,5 @@ -extends Node class_name ModLoaderUtils +extends Node const LOG_NAME := "ModLoader:ModLoaderUtils" const MOD_LOG_PATH := "user://logs/modloader.log"