necra-prototypes/dialog/dialog_line.gd
Antonio Dell'Annunziata 5c785e24af
All checks were successful
/ test (push) Successful in 2s
Integrate map and ritual
2025-03-16 16:26:42 +01:00

13 lines
298 B
GDScript

class_name DialogLine
extends Resource
enum Speed {SLOW = 5, NORMAL = 10, FAST = 15}
@export var speaker: String
@export var text: String
@export var speed: Speed
func _init(p_speaker = "<unset>", p_text = "<unset>", p_speed = Speed.NORMAL):
speaker = p_speaker
text = p_text
speed = p_speed