Class PaintCellMineralsAmountUserToolState
Inheritance
BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>
DataLayerBrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer, CellValueDataLayer<float>, float>
SetValueUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, CellValueDataLayer<float>, float>
SetValueWithSurfaceReferenceUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, CellValueDataLayer<float>, float>
PaintCellMineralsAmountUserToolState
Implements
Inherited Members
Namespace: Fwt.HexTerrains.UserTools.SM.States.Minerals
Assembly: fwt.hexterrains.dll
Syntax
public class PaintCellMineralsAmountUserToolState : SetValueWithSurfaceReferenceUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, CellValueDataLayer<float>, float>, ISmState
Constructors
PaintCellMineralsAmountUserToolState(ISmState)
Declaration
public PaintCellMineralsAmountUserToolState(ISmState parent)
Parameters
| Type | Name | Description |
|---|---|---|
| ISmState | parent |
Properties
UserToolType
Type identifier for the user tool. Allows state machine to change states based on tool type instead of state index.
Declaration
public override int UserToolType { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
GetDataLayer(CellMineralsLayer)
Retrieves the data layer associated with the specified terrain layer.
Declaration
public override CellValueDataLayer<float> GetDataLayer(CellMineralsLayer terrainLayer)
Parameters
| Type | Name | Description |
|---|---|---|
| CellMineralsLayer | terrainLayer | The terrain layer for which to obtain the corresponding data layer. Cannot be null. |
Returns
| Type | Description |
|---|---|
| CellValueDataLayer<float> | The data layer mapped to the given terrain layer. |