15 lines
332 B
C#
15 lines
332 B
C#
using Unity.Collections;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public struct CropsGrassTileMask : IGrassTileMask
|
|
{
|
|
public NativeArray<FertilityMapValue> Fertility;
|
|
|
|
public bool CanGenerateAtTile(int tileIndex)
|
|
{
|
|
return Fertility[tileIndex].MaxFertility > 0;
|
|
}
|
|
}
|
|
}
|