feat(client): net primitives — DmResponse, NarrateResult, DmTransport, ProxyConfig

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-10 09:54:03 -05:00
parent b4d22f5c5f
commit 18a18820fe
10 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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)