starcheese/eventbus/event.gd
2024-10-04 09:14:09 +01:00

13 lines
196 B
GDScript

class_name Event
extends RefCounted
var type: String
var source: Variant
func _init(_source: Variant = null):
source = _source
type = self.get_class()
func get_type() -> String:
return type