class_name ProfessionDefinition
extends Resource

@export var profession_id: StringName
@export var display_name: String
@export var visual_color := Color.WHITE
@export var prop_color := Color(0.35, 0.25, 0.15, 1.0)


func validate() -> Array[String]:
	var errors: Array[String] = []
	if profession_id.is_empty():
		errors.append("profession_id is empty")
	if display_name.is_empty():
		errors.append("display_name is empty for '%s'" % profession_id)
	if visual_color.a <= 0.0:
		errors.append("visual_color is transparent for '%s'" % profession_id)
	return errors
