starcheese/eventbus/event.gd
Elliot Stirling 7542472833 Event Bus
2024-10-03 18:12:33 +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