Show / Hide Table of Contents

Class WorldLayerUtils

Contains a set of utility methods for WorldLayers.

Inheritance
System.Object
WorldLayerUtils
Namespace: Eco.Simulation.WorldLayers
Assembly: Eco.Simulation.dll
Syntax
public static class WorldLayerUtils : Object

Methods

CapAboveSeaLevel(Vector3i)

Return a position with Y above sea level if this is under it or at it.

Declaration
public static Vector3i CapAboveSeaLevel(this Vector3i pos)
Parameters
Type Name Description
Vector3i pos
Returns
Type Description
Vector3i

IsInBiome(Vector2i, BiomeType, Single)

Returns whether the given position is in a given biome.

Declaration
public static bool IsInBiome(this Vector2i worldpos, BiomeType biome, float margin = 0F)
Parameters
Type Name Description
Vector2i worldpos
BiomeType biome
System.Single margin

optional, describes how much overlap the position needs to have with the biome to be considered in the biome.

Returns
Type Description
System.Boolean

IsInDeepOcean(Vector2i)

Declaration
public static bool IsInDeepOcean(this Vector2i worldpos)
Parameters
Type Name Description
Vector2i worldpos
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾