Interface ICellMineralsLayerConfig
Interface for a CellMineralsLayer configuration. Used to initialize the CellMineralsLayer with the provided parameters.
Namespace: Fwt.HexTerrains.Minerals.Data
Assembly: fwt.hexterrains.dll
Syntax
public interface ICellMineralsLayerConfig
Properties
MaxMineralsAmount
List of max values per each type of mineral in cell. Technically this does not restrict the actual amount of minerals in a cell, but it can be used for visualization purposes (e.g. to calculate the transparency of the mineral color in the color map, where MinMineralsAmount means fully transparent and MaxMineralsAmount means fully opaque). Index = mineral id, value = max amount for that mineral in a cell.
Declaration
IList<float> MaxMineralsAmount { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<float> |
MinMineralsAmount
List of min values per each type of mineral in cell. Technically this does not restrict the actual amount of minerals in a cell, but it can be used for visualization purposes (e.g. to calculate the transparency of the mineral color in the color map, where MinMineralsAmount means fully transparent and MaxMineralsAmount means fully opaque). Index = mineral id, value = max amount for that mineral in a cell.
Declaration
IList<float> MinMineralsAmount { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<float> |
MineralIndexMap
Init args for a MineralIndexMap, where the value of each cell is an index representing the type of mineral present in that cell.
Declaration
IInitColorMapCellValueDataLayerArgs<uint> MineralIndexMap { get; set; }
Property Value
| Type | Description |
|---|---|
| IInitColorMapCellValueDataLayerArgs<uint> |
MineralsAmountMap
Init args for a AmountMap, where the value of each cell is a float representing the amount of minerals present in that cell.
Declaration
IInitCellValueDataLayerArgs<float> MineralsAmountMap { get; set; }
Property Value
| Type | Description |
|---|---|
| IInitCellValueDataLayerArgs<float> |