Fixed robot save mechanic to include nodes and their states.

This commit is contained in:
2026-06-28 14:00:11 +02:00
parent c29372ca51
commit c84fdf8a0b
10 changed files with 361 additions and 6 deletions
+24
View File
@@ -96,4 +96,28 @@ public class RobotSaveData
public float Maintenance { get; set; }
public bool IsCoolingDown { get; set; }
public bool IsBroken { get; set; }
public List<NodeSaveData> RunningProgramNodes { get; set; }
public string ProgramStartNode { get; set; }
public string CurrentNode { get; set; }
public bool IsExecuting { get; set; }
}
public class NodeSaveData
{
public string NodeType { get; set; }
public string EditorNodeId { get; set; }
public string NextEditorNodeId { get; set; }
public string NegativeEditorNodeId { get; set; }
public string NodeContent { get; set; }
public string LastExecutionMessage { get; set; }
public string ItemId { get; set; }
public string Comparator { get; set; }
public int Amount { get; set; }
public int AmountExecuted { get; set; }
public double ElapsedCraftTime { get; set; }
public int AmountCrafted { get; set; }
public bool HasTargetPosition { get; set; }
public int TargetX { get; set; }
public int TargetY { get; set; }
public int TargetZ { get; set; }
}