You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add C# script to csproj when attaching it to an object
This commit is contained in:
@@ -27,12 +27,15 @@ namespace GodotSharpTools.Project
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void AddItemChecked(this ProjectRootElement root, string itemType, string include)
|
||||
public static bool AddItemChecked(this ProjectRootElement root, string itemType, string include)
|
||||
{
|
||||
if (!root.HasItem(itemType, include))
|
||||
{
|
||||
root.AddItem(itemType, include);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static Guid GetGuid(this ProjectRootElement root)
|
||||
|
||||
Reference in New Issue
Block a user