Initial commit
This commit is contained in:
commit
bb075d6353
20 changed files with 336 additions and 0 deletions
34
addons/placeholder_tracker/PtExportPlugin.cs
Normal file
34
addons/placeholder_tracker/PtExportPlugin.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
#if TOOLS
|
||||
|
||||
using Godot;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace PT;
|
||||
|
||||
[Tool]
|
||||
public partial class PtExportPlugin : EditorExportPlugin
|
||||
{
|
||||
public override string _GetName()
|
||||
{
|
||||
return "Placeholder Tracker";
|
||||
}
|
||||
|
||||
public override void _ExportFile(string path, string type, string[] features)
|
||||
{
|
||||
GD.PushWarning("TODO: warn user when a placeholder is encountered");
|
||||
|
||||
if (path.EndsWith(PlaceholderTracker.TODO_EXTENSION))
|
||||
{
|
||||
GD.PushWarning("TODO: encountered a .TODO file");
|
||||
Skip();
|
||||
return;
|
||||
}
|
||||
|
||||
if (PlaceholderTracker.IsFilePlaceholder(path))
|
||||
{
|
||||
GD.PushWarning("TODO: found a placeholder!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue