comment cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user