AdaptionFunction: ((worldLayer: WorldLayer, x: number, y: number, terrain: TerrainType, adaptation: ITileAdaptation, variationIndex: number) => TerrainDecorationStatus)

Type declaration

    • (worldLayer: WorldLayer, x: number, y: number, terrain: TerrainType, adaptation: ITileAdaptation, variationIndex: number): TerrainDecorationStatus
    • Takes an x, y, and z coordinate and a randomly-generated "variation index", and returns an ITileAdaptation object for the tile. How the variation index is used to generate the ITileAdaptation will be implementation-specific.

      Parameters

      Returns TerrainDecorationStatus

Generated using TypeDoc