Trying to fix uid causing spellcheck error
This commit is contained in:
@@ -11,10 +11,10 @@ public static class MyNodeExtensions
|
||||
/// <summary>
|
||||
/// Checks if given Property exists on <c>Base</c>
|
||||
/// </summary>
|
||||
/// <param name="Base">Current <c>GodotObject</c></param>
|
||||
/// <param name="PropertyName">Property Name</param>
|
||||
/// <param name="base">Current <c>GodotObject</c></param>
|
||||
/// <param name="propertyName">Property Name</param>
|
||||
/// <returns><c>bool</c> true if given property exists on Base</returns>
|
||||
public static bool HasProperty(this GodotObject Base, string PropertyName)
|
||||
public static bool HasProperty(this GodotObject @base, string propertyName)
|
||||
{
|
||||
/*
|
||||
Returns the object's property list as an Godot.Collections.Array of dictionaries.
|
||||
@@ -26,9 +26,9 @@ public static class MyNodeExtensions
|
||||
- hint_string depends on the hint (see PropertyHint);
|
||||
- usage is a combination of PropertyUsageFlags.
|
||||
*/
|
||||
foreach (var Property in Base.GetPropertyListEx())
|
||||
foreach (var property in @base.GetPropertyListEx())
|
||||
{
|
||||
if (Property.Name == PropertyName)
|
||||
if (property.Name == propertyName)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ public static class MyNodeExtensions
|
||||
public static (Node node, Resource resource, NodePath remaining) GetNodeAndResourceEx(this Node self, NodePath path)
|
||||
{
|
||||
var result = self.GetNodeAndResource(path);
|
||||
return ((Node)result[0], (Resource)result[1], (NodePath)result[2]);
|
||||
return ((Node)(GodotObject)result[0], (Resource)(GodotObject)result[1], (NodePath)result[2]);
|
||||
}
|
||||
public static void QueueFreeChildren(this Node node) => node.GetChildren().ToList().ForEach(item => item.QueueFree());
|
||||
public static void QueueFreeChildren(this Node node, Func<Node, bool> predicate) => node.GetChildren().Where(predicate).ToList().ForEach(item => item.QueueFree());
|
||||
|
||||
Reference in New Issue
Block a user