Add more NPCs, update dialogue manager to 4.4 compatible version
This commit is contained in:
20
Zennysoft.Game.Ma/addons/dialogue_manager/export_plugin.gd
Normal file
20
Zennysoft.Game.Ma/addons/dialogue_manager/export_plugin.gd
Normal file
@@ -0,0 +1,20 @@
|
||||
class_name DMExportPlugin extends EditorExportPlugin
|
||||
|
||||
const IGNORED_PATHS = [
|
||||
"/assets",
|
||||
"/components",
|
||||
"/l10n",
|
||||
"/views"
|
||||
]
|
||||
|
||||
func _export_file(path: String, type: String, features: PackedStringArray) -> void:
|
||||
var plugin_path: String = Engine.get_meta("DialogueManagerPlugin").get_plugin_path()
|
||||
|
||||
# Ignore any editor stuff
|
||||
for ignored_path: String in IGNORED_PATHS:
|
||||
if path.begins_with(plugin_path + ignored_path):
|
||||
skip()
|
||||
|
||||
# Ignore C# stuff it not using dotnet
|
||||
if path.begins_with(plugin_path) and not DMSettings.check_for_dotnet_solution() and path.ends_with(".cs"):
|
||||
skip()
|
||||
Reference in New Issue
Block a user