class_name Heart
extends TextureRect

@export var full_heart: Texture2D
@export var three_quarter_heart: Texture2D
@export var half_heart: Texture2D
@export var quarter_heart: Texture2D
@export var empty_heart: Texture2D

func set_value(value: int) -> void:
	match value:
		4: texture = full_heart
		3: texture = three_quarter_heart
		2: texture = half_heart
		1: texture = quarter_heart
		0: texture = empty_heart
