Fixed robot save mechanic to include nodes and their states.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user