19 lines
498 B
GDScript
19 lines
498 B
GDScript
class_name NarrateResult
|
|
extends RefCounted
|
|
## The game-meaningful result of one narrate call. `facts` are the [FACT:]
|
|
## strings the caller applies to the canon log; empty when degraded.
|
|
|
|
var display_text: String
|
|
var facts: Array
|
|
var degraded: bool
|
|
|
|
|
|
func _init(p_display_text := "", p_facts := [], p_degraded := false) -> void:
|
|
display_text = p_display_text
|
|
facts = p_facts
|
|
degraded = p_degraded
|
|
|
|
|
|
static func fallback(line: String) -> NarrateResult:
|
|
return NarrateResult.new(line, [], true)
|