Show / Hide Table of Contents

Class PlantsInAreaEnumerable

Allows to iterate through plants in area with almost no memory alloactions by using poolablelist inside of enumerator

Inheritance
System.Object
PlantsInAreaEnumerable
Implements
System.Collections.Generic.IEnumerable<Plant>
System.Collections.IEnumerable
NetFabric.Hyperlinq.IValueEnumerable<Plant, PoolableListEnumerator<Plant>>
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<, >

Extension Methods

PlantsInAreaEnumerableExtensions.AsValueEnumerable(PlantsInAreaEnumerable)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾