diff --git a/Game/CurrentLevel.cs.uid b/Game/CurrentLevel.cs.uid new file mode 100644 index 0000000..4df8ba8 --- /dev/null +++ b/Game/CurrentLevel.cs.uid @@ -0,0 +1 @@ +uid://2eir1lf6v7kw diff --git a/Game/GameServiceSource.cs.uid b/Game/GameServiceSource.cs.uid new file mode 100644 index 0000000..7601f17 --- /dev/null +++ b/Game/GameServiceSource.cs.uid @@ -0,0 +1 @@ +uid://bpes6mnv21f2v diff --git a/Game/LevelData.cs.uid b/Game/LevelData.cs.uid new file mode 100644 index 0000000..9dee7ee --- /dev/null +++ b/Game/LevelData.cs.uid @@ -0,0 +1 @@ +uid://ywe7vkywrdvk diff --git a/Game/LevelScope.cs.uid b/Game/LevelScope.cs.uid new file mode 100644 index 0000000..2ccd61e --- /dev/null +++ b/Game/LevelScope.cs.uid @@ -0,0 +1 @@ +uid://c1n5uoehtoe84 diff --git a/Game/LevelsData.cs.uid b/Game/LevelsData.cs.uid new file mode 100644 index 0000000..d876b0a --- /dev/null +++ b/Game/LevelsData.cs.uid @@ -0,0 +1 @@ +uid://cl200m5rnkboq diff --git a/Game/levels_data.tres b/Game/levels_data.tres new file mode 100644 index 0000000..4998e80 --- /dev/null +++ b/Game/levels_data.tres @@ -0,0 +1,14 @@ +[gd_resource type="Resource" script_class="LevelsData" format=3 uid="uid://c4ym7vrpgk4e6"] + +[ext_resource type="Script" uid="uid://ywe7vkywrdvk" path="res://Game/LevelData.cs" id="1_bkfnq"] +[ext_resource type="Script" uid="uid://cl200m5rnkboq" path="res://Game/LevelsData.cs" id="1_e2ehm"] + +[sub_resource type="Resource" id="Resource_bbjqm"] +script = ExtResource("1_bkfnq") +TimeBetweenSpawns = 2.0 +metadata/_custom_type_script = "uid://ywe7vkywrdvk" + +[resource] +script = ExtResource("1_e2ehm") +_levelDataEntries = [SubResource("Resource_bbjqm")] +metadata/_custom_type_script = "uid://cl200m5rnkboq" diff --git a/Interfaces/ICurrentLevel.cs.uid b/Interfaces/ICurrentLevel.cs.uid new file mode 100644 index 0000000..8503b0e --- /dev/null +++ b/Interfaces/ICurrentLevel.cs.uid @@ -0,0 +1 @@ +uid://c7ag4tv7en5f7 diff --git a/Interfaces/ILevelProvider.cs.uid b/Interfaces/ILevelProvider.cs.uid new file mode 100644 index 0000000..e318c1a --- /dev/null +++ b/Interfaces/ILevelProvider.cs.uid @@ -0,0 +1 @@ +uid://c3isfeldd8lyl diff --git a/README.md b/README.md new file mode 100644 index 0000000..dbf1101 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +See https://github.com/enaweg/godot-epluginframework diff --git a/addons/GodotDI/BuilderExtensions.cs.uid b/addons/GodotDI/BuilderExtensions.cs.uid new file mode 100644 index 0000000..c96439d --- /dev/null +++ b/addons/GodotDI/BuilderExtensions.cs.uid @@ -0,0 +1 @@ +uid://o6qak8rcn6bw diff --git a/addons/GodotDI/IValueGetter.cs.uid b/addons/GodotDI/IValueGetter.cs.uid new file mode 100644 index 0000000..771fdd9 --- /dev/null +++ b/addons/GodotDI/IValueGetter.cs.uid @@ -0,0 +1 @@ +uid://cti8rs1qvkwgs diff --git a/addons/GodotDI/IValueSetter.cs.uid b/addons/GodotDI/IValueSetter.cs.uid new file mode 100644 index 0000000..0d97163 --- /dev/null +++ b/addons/GodotDI/IValueSetter.cs.uid @@ -0,0 +1 @@ +uid://ci0sgiavxhc37 diff --git a/addons/GodotDI/ScopeTypesAndNames.cs b/addons/GodotDI/ScopeTypesAndNames.cs index 2face86..a834ea7 100644 --- a/addons/GodotDI/ScopeTypesAndNames.cs +++ b/addons/GodotDI/ScopeTypesAndNames.cs @@ -3,6 +3,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Reflection; +using System.Runtime.Loader; using Godot; using OwofGames.GodotLume; @@ -21,8 +22,12 @@ public static class ScopeTypesAndNames { if (_assemblyLoadEventHandler != null) return; Initialize(); - System.Runtime.Loader.AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly())! - .Unloading += _ => { Deinitialize(); }; + AssemblyLoadContext.GetLoadContext(Assembly.GetExecutingAssembly())!.Unloading += OnUnloading; + } + + private static void OnUnloading(AssemblyLoadContext _) + { + Deinitialize(); } private static void Initialize() diff --git a/addons/GodotDI/ValueProvider.cs.uid b/addons/GodotDI/ValueProvider.cs.uid new file mode 100644 index 0000000..1f4f354 --- /dev/null +++ b/addons/GodotDI/ValueProvider.cs.uid @@ -0,0 +1 @@ +uid://dsubhm0j58vwo