Пример #1
0
 public void Do()
 {
     foreach (var resourceCell in cellResources)
     {
         resourceLayer.ClearResources(resourceCell.Cell);
         resourceLayer.AddResource(resourceCell.NewResourceType, resourceCell.Cell, resourceLayer.GetMaxDensity(resourceCell.NewResourceType));
     }
 }
 public void Do()
 {
     foreach (var resourceCell in cellResources)
     {
         var density = resourceLayer.GetResource(resourceCell.Cell).Density + 1;
         resourceLayer.ClearResources(resourceCell.Cell);
         resourceLayer.AddResource(resourceCell.NewResourceType, resourceCell.Cell, density);
     }
 }
Пример #3
0
 protected override void TraitEnabled(Actor self)
 {
     foreach (var cell in allCells)
     {
         var pos = ((MPos)cell).ToCPos(self.World.Map);
         resLayer.ClearResources(pos);
         resRenderer.UpdateRenderedSprite(pos, RendererCellContents.Empty);
     }
 }
Пример #4
0
 public void Do()
 {
     resourceContents = resourceLayer.GetResource(cell);
     resourceLayer.ClearResources(cell);
 }