public void SetItemInfo(ResourceTypes itemId, BasicDockInfo dockInfo, ConfirmFastItemType type)
 {
     this.itemId = (int) itemId;
     this.dockInfo = dockInfo;
     this.type = type;
     this.InitUI();
 }
 private int GetOpenDockInfo(BasicDockInfo[] docks)
 {
     int num = 0;
     foreach (BasicDockInfo info in docks)
     {
         if (info.locked == 0)
         {
             num++;
         }
     }
     return num;
 }
 private GameObject GetPrefabOfDock(BasicDockInfo dock)
 {
     if (dock.locked > 0)
     {
         return this.lockedDockPrefab;
     }
     if (dock.startTime == 0)
     {
         return this.notUsingdockPrefab;
     }
     if (dock.IsFinished)
     {
         return this.finishedDockPrefab;
     }
     return this.inUsingDockPrefab;
 }
 public void SetDockInfo(BasicDockInfo dock)
 {
     this.dockInfo = dock;
     this.isFinished = this.dockInfo.IsFinished;
     this.UpdateDockInfo();
 }