Record original-alignment implementation and traceability checkpoint
Capture current source, content data, tests, asset licenses, and original-specification traceability. Original implementation remains incomplete. The accepted matching UI generation passed 154 suites and 12,253 checks, with eight rendered staff-contract screens reviewed. Latest native Windows and full-original acceptance remain outstanding.
This commit is contained in:
@@ -20,6 +20,7 @@ var task_type: StringName = &""
|
||||
var priority := 0
|
||||
var created_at := 0
|
||||
var deadline_at := -1
|
||||
var rescue_facility_id: StringName = &""
|
||||
var target_entity_id: StringName = &""
|
||||
var target_cell := Vector3i.ZERO
|
||||
var required_role_tags: Array[StringName] = []
|
||||
@@ -53,6 +54,7 @@ func configure(
|
||||
priority = clampi(p_priority, 0, MAX_PRIORITY)
|
||||
created_at = maxi(p_created_at, 0)
|
||||
deadline_at = int(_value(options, &"deadline_at", -1))
|
||||
rescue_facility_id = StringName(_value(options, &"rescue_facility_id", &""))
|
||||
target_entity_id = StringName(_value(options, &"target_entity_id", &""))
|
||||
target_cell = _vector3i(_value(options, &"target_cell", Vector3i.ZERO))
|
||||
required_role_tags = _sorted_unique_names(_value(options, &"required_role_tags", []))
|
||||
@@ -224,6 +226,7 @@ func create_snapshot() -> Dictionary:
|
||||
&"priority": priority,
|
||||
&"created_at": created_at,
|
||||
&"deadline_at": deadline_at,
|
||||
&"rescue_facility_id": String(rescue_facility_id),
|
||||
&"target_entity_id": String(target_entity_id),
|
||||
&"target_cell": [target_cell.x, target_cell.y, target_cell.z],
|
||||
&"required_role_tags": _names_to_strings(required_role_tags),
|
||||
@@ -258,6 +261,7 @@ static func from_snapshot(snapshot: Dictionary) -> StaffTask:
|
||||
int(snapshot.get(&"created_at", 0)),
|
||||
{
|
||||
&"deadline_at": snapshot.get(&"deadline_at", -1),
|
||||
&"rescue_facility_id": snapshot.get(&"rescue_facility_id", ""),
|
||||
&"target_entity_id": snapshot.get(&"target_entity_id", ""),
|
||||
&"target_cell": snapshot.get(&"target_cell", []),
|
||||
&"required_role_tags": snapshot.get(&"required_role_tags", []),
|
||||
@@ -283,7 +287,8 @@ static func from_snapshot(snapshot: Dictionary) -> StaffTask:
|
||||
|
||||
static func _snapshot_shape_is_valid(snapshot: Dictionary) -> bool:
|
||||
return (
|
||||
not String(snapshot.get(&"task_id", "")).is_empty()
|
||||
(snapshot.get(&"rescue_facility_id", "") is String or snapshot.get(&"rescue_facility_id", "") is StringName)
|
||||
and not String(snapshot.get(&"task_id", "")).is_empty()
|
||||
and not String(snapshot.get(&"task_type", "")).is_empty()
|
||||
and snapshot.get(&"target_cell", null) is Array
|
||||
and snapshot.get(&"required_role_tags", null) is Array
|
||||
|
||||
Reference in New Issue
Block a user