示例#1
0
 public Special(IEffectHolder holder, Stat stat, AmountDelegate amount, StatLineDelegate statLine, string tag) : base()
 {
     Holder       = holder;
     Stat         = stat;
     AmountFunc   = amount;
     StatLineFunc = statLine;
     Tag          = tag;
 }
示例#2
0
 public DownloaderFeedback(IChoker choker, SchedulerDelegate addTaskFunction, StatusDelegate statusFunction, MeasureRateDelegate uploadFunction,
                           MeasureRateDelegate downloadFunction, MeasureRateDelegate remainingFunction, AmountDelegate leftFunction, long fileLength, Flag finishFlag,
                           double interval, bool sp)
 {
     this.choker            = choker;
     this.addTaskFunction   = addTaskFunction;
     this.statusFunction    = statusFunction;
     this.uploadFunction    = uploadFunction;
     this.downloadFunction  = downloadFunction;
     this.remainingFunction = remainingFunction;
     this.leftFunction      = leftFunction;
     this.fileLength        = fileLength;
     this.finishFlag        = finishFlag;
     this.interval          = interval;
     this.sp      = sp;
     this.lastIDs = new List <byte[]>();
     this.Display();
 }