Browse Source

Merge pull request #49860 from pulawskig/master

Fixing mono build after instance() -> instanciate() name change
Rémi Verschelde 4 years ago
parent
commit
d00632b6a2

+ 2 - 2
modules/mono/editor/GodotTools/GodotTools/Ides/GodotIdeManager.cs

@@ -114,12 +114,12 @@ namespace GodotTools.Ides
                         if (Utils.OS.IsMacOS && editorId == ExternalEditorId.VisualStudioForMac)
                         if (Utils.OS.IsMacOS && editorId == ExternalEditorId.VisualStudioForMac)
                         {
                         {
                             vsForMacInstance = (vsForMacInstance?.IsDisposed ?? true ? null : vsForMacInstance) ??
                             vsForMacInstance = (vsForMacInstance?.IsDisposed ?? true ? null : vsForMacInstance) ??
-                                               new MonoDevelop.Instantiate(solutionPath, MonoDevelop.EditorId.VisualStudioForMac);
+                                               new MonoDevelop.Instance(solutionPath, MonoDevelop.EditorId.VisualStudioForMac);
                             return vsForMacInstance;
                             return vsForMacInstance;
                         }
                         }
 
 
                         monoDevelInstance = (monoDevelInstance?.IsDisposed ?? true ? null : monoDevelInstance) ??
                         monoDevelInstance = (monoDevelInstance?.IsDisposed ?? true ? null : monoDevelInstance) ??
-                                            new MonoDevelop.Instantiate(solutionPath, MonoDevelop.EditorId.MonoDevelop);
+                                            new MonoDevelop.Instance(solutionPath, MonoDevelop.EditorId.MonoDevelop);
                         return monoDevelInstance;
                         return monoDevelInstance;
                     }
                     }
 
 

+ 4 - 4
modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/PackedSceneExtensions.cs

@@ -8,9 +8,9 @@ namespace Godot
         /// `Node.NotificationInstanced` notification on the root node.
         /// `Node.NotificationInstanced` notification on the root node.
         /// </summary>
         /// </summary>
         /// <typeparam name="T">The type to cast to. Should be a descendant of Node.</typeparam>
         /// <typeparam name="T">The type to cast to. Should be a descendant of Node.</typeparam>
-        public T Instance<T>(PackedScene.GenEditState editState = (PackedScene.GenEditState)0) where T : class
+        public T Instantiate<T>(PackedScene.GenEditState editState = (PackedScene.GenEditState)0) where T : class
         {
         {
-            return (T)(object)Instance(editState);
+            return (T)(object)Instantiate(editState);
         }
         }
 
 
         /// <summary>
         /// <summary>
@@ -19,9 +19,9 @@ namespace Godot
         /// `Node.NotificationInstanced` notification on the root node.
         /// `Node.NotificationInstanced` notification on the root node.
         /// </summary>
         /// </summary>
         /// <typeparam name="T">The type to cast to. Should be a descendant of Node.</typeparam>
         /// <typeparam name="T">The type to cast to. Should be a descendant of Node.</typeparam>
-        public T InstanceOrNull<T>(PackedScene.GenEditState editState = (PackedScene.GenEditState)0) where T : class
+        public T InstantiateOrNull<T>(PackedScene.GenEditState editState = (PackedScene.GenEditState)0) where T : class
         {
         {
-            return Instance(editState) as T;
+            return Instantiate(editState) as T;
         }
         }
     }
     }
 }
 }