stick-the-quick/util/StrictSingleton.gd

7 lines
177 B
GDScript

class_name StrictSingleton extends Object
## Base class for "strict" singletons which do not allow instantiation.
func _init() -> void:
push_error("Not instantiable")
free()