2025-01-11 00:25:52 +01:00

15 lines
306 B
GDScript

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 []