Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Namespace Fwt.HexTerrains.Data

    Classes

    ChunksGridLayer

    Container for data related to Terrain Chunks Grid. Chunk visibility, Chunk Metrics per chunk, not per cell.

    ColorMapTexturesSource

    Structs

    ChunkBounds

    ChunkChangesLog

    This layer is used to check what chunks are dirty and which are not. It's useful when you do a lot of changes to terrain, and log them into this buffer, So later CheckChunkChangesSystem will read this buffer and mark Chunks that are mentioned here as dirty

    ChunkPositions

    ChunkVisibility

    This is a layer of info about wether chunk is visible and if so, where among all possible positions this chunk is visible (Center, North, East, etc.) If Terrain has Left-Right sides connected, nether Top-Down sides, there is only one possible position: Center

    ColorMapTexture

    Buffer of all ColorMap textures to fill with colors from different data layers.

    ColorMapTexturesCache

    Contains cached ViewMode and ColorMap verions. When ViewMode's or ColorMap's version is different from cached values, the update logic is applied (like update UI), otherwise the step is skipped

    CreateChunksGridDataRequest

    CreateColorMapTexturesRequest

    Request to create ColorMap textures on Terrain entity from the source.

    HexCellIndex

    HexCellMetrics

    Metrics of a cell in the hex terrain. Contains information about the cell's biome, position, coordinate, byte height (from heightmap), height in meters, chunk index, chunk coord, etc.

    HexChunkGridIndex

    Shared component that is placed on the CellEntity so it helps to quickly find all CellEntities placed on given chunk.

    HexChunkMetrics

    HexTerrain

    Contains the TerrainSettings. Indicates that the entity is a HexTerrain

    HexTerrainMetrics

    Metrics of the HexTerrain. Contains information about the size of the terrain, chunk size, number of cells, etc.

    HexTerrainRaycastData

    Data structure used to store the result of a raycast on the hex terrain.

    HexTerrainSettings

    Struct for storing hex terrain settings like TerrainSize, ChunkSize, HexRotation, HexLayout, etc. Has methods for converting between pixel and cell coordinates, getting cell index by coordinates, etc.

    HexTerrainViewMode

    Contains the current view mode of the terrain.

    HexTerrainVisibility

    Component to indicate whether the hex terrain is visible or not. Change Value to false to exclude the hex terrain from rendering.

    In this article
    Back to top Generated by DocFX