npc-clients-godot/plugin.gd

17 lines
458 B
GDScript

@tool
extends EditorPlugin
const AUTOLOAD_NAME = "GumYum"
const AUTOLOAD_PATH = "res://addons/gumyum_npc_game_client/Client.gd"
func _enter_tree():
# Add the GumYum game client as an autoload singleton
add_autoload_singleton(AUTOLOAD_NAME, AUTOLOAD_PATH)
print("GumYum NPC Game Client plugin activated")
func _exit_tree():
# Remove the autoload singleton
remove_autoload_singleton(AUTOLOAD_NAME)
print("GumYum NPC Game Client plugin deactivated")