15 lines
306 B
GDScript3
Raw Permalink Normal View History

2024-12-27 21:00:07 +01:00
class_name ThrowableBase
## Interface for throwable objects
##
## Objects that implement this interface can be used within a try-catch-
## structure.
func throw(_default = null) -> Variant:
NotImplementedError.raise()
return null
func tags() -> Array[String]:
NotImplementedError.raise()
return []