iter51-卡2
This commit is contained in:
1 parent
1cd6e2b1b0
commit
372b4fdc31
27 files changed
+1231
-356
No files matched your search
@@ -2,15 +2,18 @@ class_name AuraSegment
|
||||
extends RefCounted
|
||||
# ② 增益/减益段 Segment(P1-1 结算巨函数拆段;段边界=审计五段〔裁点③甲〕)。
|
||||
# 职责:续存实例组合行(本结算新授予的已在授予段逐 grant 出行——增益状态 义务⑦)。
|
||||
# 行发射归宿主编排器(oc)——零算法改动(🔴 零行为变更契约)。
|
||||
# 耦合边界(5.1 封装修复换代):引用束注入——构造收编排器组装的 20 键封闭束,本段断言 1 键
|
||||
# (emit_composition_cb)解包;组合行发射经回调回宿主保留面——对编排器零引用。
|
||||
# 零算法改动(🔴 零行为变更契约)。
|
||||
|
||||
var oc: BattleOrchestrator # 宿主(类型标注=段内 := 推断前提;循环类名引用 Godot 4 全局类安全) 宿主
|
||||
var emit_composition_cb: Callable # 宿主 _emit_composition_effects——续存实例组合行发射(保留面)
|
||||
|
||||
|
||||
func _init(host) -> void:
|
||||
oc = host
|
||||
func _init(bundle: Dictionary) -> void:
|
||||
assert(bundle.has("emit_composition_cb"), "[增益减益段] 引用束缺键: emit_composition_cb")
|
||||
emit_composition_cb = bundle.emit_composition_cb
|
||||
|
||||
|
||||
func run(ri: int) -> void:
|
||||
oc._emit_composition_effects("hero", ri)
|
||||
oc._emit_composition_effects("enemy", ri)
|
||||
emit_composition_cb.call("hero", ri)
|
||||
emit_composition_cb.call("enemy", ri)
|
||||
Reference in new issue
Block a user