internal int GetBuildingTransfersStorage(int period, ushort buildingID, TransferConnectionType transferConnectionType, TransferReason transferReason)
        {
            ConnectedTransfersStorage connectedTransfersStorage = _data[period].GetBuildingData(buildingID);

            if (connectedTransfersStorage == null)
            {
                return(0);
            }
            return(connectedTransfersStorage.GetStorageByType(transferConnectionType).GetTransferedValue(transferReason));
        }
 internal void AddTransfer(CargoBatch cargoBatch)
 {
     if (_data.TryGetValue(cargoBatch.buildingID, out ConnectedTransfersStorage connectedTransfers))
     {
         connectedTransfers.AddTransfer(cargoBatch.transferConnectionType, cargoBatch.transferReason, cargoBatch.transferSize);
     }
     else
     {
         connectedTransfers = new ConnectedTransfersStorage(cargoBatch.transferConnectionType, cargoBatch.transferReason, cargoBatch.transferSize);
         _data.Add(cargoBatch.buildingID, connectedTransfers);
     }
 }