class_name DestroyedEvent extends Event var destroyed_object: Node var object_type: String var position: Vector2 var destruction_cause: String func _init(_destroyed_object: Node, _object_type: String, _position: Vector2, _destruction_cause: String = ""): destroyed_object = _destroyed_object object_type = _object_type position = _position destruction_cause = _destruction_cause type = "DestroyedEvent" func get_event_details() -> Dictionary: return { "object": destroyed_object, "type": object_type, "position": position, "cause": destruction_cause }