comment cleanup

This commit is contained in:
2024-04-25 10:03:37 -04:00
parent c0b93ff809
commit 3a514dc771
2 changed files with 14 additions and 6 deletions
+8
View File
@@ -56,6 +56,9 @@ public class WorkOrder implements Delayed {
public long completionTime;
public boolean runCompleted = false;
public boolean runCanceled = false;
// This collection is serialized to the vendor rolling window in ManageNPCMsg.
public ConcurrentHashMap.KeySetView<Item, Boolean> cooking = ConcurrentHashMap.newKeySet();
public WorkOrder() {
@@ -64,6 +67,9 @@ public class WorkOrder implements Delayed {
public WorkOrder(JSONObject jsonWorkOrder) {
// This constructor is used to load workOrders from disk
// during bootstrap. (dyn_workorders)
this.workOrderID = jsonWorkOrder.getInt("workOrderID");
this.vendor = NPC.getNPC(jsonWorkOrder.getInt("vendor"));
this.slots_used = jsonWorkOrder.getInt("slots_used");
@@ -191,6 +197,8 @@ public class WorkOrder implements Delayed {
public static JSONObject toJson(WorkOrder workOrder) {
// Workorders are persisted in JSON format.
JSONObject jsonWorkOrder = new JSONObject();
jsonWorkOrder.put("workOrderID", workOrder.workOrderID);