feat(stage): complete phase 20b action plans
This commit is contained in:
@@ -170,7 +170,7 @@ func _test_adapter_identity_round_trip() -> void:
|
||||
"stk_path": "res://content/stickmen/phase20a_missing_character.stk",
|
||||
"position": {"x": -360.0, "y": 0.0},
|
||||
"rotation": 0.0,
|
||||
"action_queue": [],
|
||||
"action_plan": [],
|
||||
}
|
||||
var missing_character: Node2D = MISSING_STICKMAN.new() as Node2D
|
||||
missing_character.configure(missing_character_entry)
|
||||
@@ -282,6 +282,10 @@ func _object(file_id: String, object_type: String, stage_id: String, stage_name:
|
||||
|
||||
|
||||
func _current_document(objects: Array) -> Dictionary:
|
||||
for raw_object: Variant in objects:
|
||||
if raw_object is Dictionary and String((raw_object as Dictionary).get("type", "")) == "stickman":
|
||||
(raw_object as Dictionary)["action_plan"] = []
|
||||
(raw_object as Dictionary).erase("action_queue")
|
||||
return {
|
||||
"version": STAGE_SCENE_IO.FILE_VERSION,
|
||||
"scene_name": "Identity Test",
|
||||
|
||||
Reference in New Issue
Block a user