starcheese/eventbus/event.gd

13 lines
196 B
GDScript3
Raw Normal View History

2024-10-03 18:12:33 +01:00
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