Beispiel #1
0
 public TintedCell(TintedCell src)
 {
     Ticks = src.Ticks;
     Level = src.Level;
     layer = src.layer;
     cpos  = src.cpos;
     wpos  = src.wpos;
 }
Beispiel #2
0
 public TintedCell(TintedCell src)
 {
     Ticks            = src.Ticks;
     Level            = src.Level;
     layer            = src.layer;
     location         = src.location;
     centeredLocation = src.centeredLocation;
 }
 void IncreaseTintedCellLevel(CPos pos, int mul, int foff, TintedCellsLayer tcLayer)
 {
     if (ApplyFalloffToLevel)
     {
         tcLayer.IncreaseLevel(pos, Level * mul / 100, MaxLevel * foff / 100);
     }
     else
     {
         tcLayer.IncreaseLevel(pos, Level * mul / 100, MaxLevel);
     }
 }
Beispiel #4
0
 public TintedCell(TintedCellsLayer layer, CPos cpos, WPos wpos)
 {
     this.layer = layer;
     this.cpos  = cpos;
     this.wpos  = wpos;
 }
Beispiel #5
0
 public TintedCell(TintedCellsLayer layer, CPos location, WPos centeredLocation)
 {
     this.layer            = layer;
     this.location         = location;
     this.centeredLocation = centeredLocation;
 }