broken_seals_2ds/game/addons/tile_generator/plugin.gd
2022-01-30 23:20:50 +01:00

14 lines
394 B
GDScript

tool
extends EditorPlugin
var SimpleTile = preload("res://addons/tile_generator/smple_tile.gd")
var ShearTile = preload("res://addons/tile_generator/shear_tile.gd")
func _enter_tree():
add_custom_type("SimpleTile", "Resource", SimpleTile, null)
add_custom_type("ShearTile", "Resource", ShearTile, null)
func _exit_tree():
remove_custom_type("SimpleTile")
remove_custom_type("ShearTile")