Class PlantsInAreaEnumerable
Allows to iterate through plants in area with almost no memory alloactions by using poolablelist inside of enumerator
Inheritance
System.Object
PlantsInAreaEnumerable
Namespace: Eco.Simulation.Plants
Assembly: Eco.Simulation.dll
Syntax
public sealed class PlantsInAreaEnumerable : ValueType, IEnumerable<Plant>, IEnumerable, IValueEnumerable<Plant, PoolableListEnumerator<Plant>>
Constructors
PlantsInAreaEnumerable(WorldArea, PlantSpecies, PlantCache)
Declaration
public PlantsInAreaEnumerable(WorldArea area, PlantSpecies species, PlantCache cache)
Parameters
| Type | Name | Description |
|---|---|---|
| WorldArea | area | |
| PlantSpecies | species | |
| PlantCache | cache |
Methods
GetEnumerator()
Declaration
public PoolableListEnumerator<Plant> GetEnumerator()
Returns
| Type | Description |
|---|---|
| PoolableListEnumerator<Plant> |
Implements
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
NetFabric.Hyperlinq.IValueEnumerable<, >