class_name Player extends Character ## Player ID var id: String ## Components var movement: MovementComponent var state: StateComponent func _enter_tree(): movement = $Movement state = $State ## Name signal name_changed(new_name: String) func set_player_name(new_name: String): name = new_name name_changed.emit(new_name)