Class ApplyHeightmapUserToolState<TBrushTarget>
Inheritance
ApplyHeightmapUserToolState<TBrushTarget>
Assembly: fwt.hexterrains.dll
public abstract class ApplyHeightmapUserToolState<TBrushTarget> : BrushUserToolState<TBrushTarget, UserToolSettingsDataSource, UniversalToolSettingsScreen>, ISmState where TBrushTarget : HexSurfaceLayer
Type Parameters
| Name |
Description |
| TBrushTarget |
|
Constructors
Declaration
public ApplyHeightmapUserToolState(IHexTerrainAPI userToolAPI)
Parameters
Fields
Declaration
public List<Texture2D> HeightmapsPalette
Field Value
| Type |
Description |
| List<Texture2D> |
|
Properties
Returns the current heightmap texture from HeightmapsPalette based on the HeightmapIndex.
Declaration
public Texture2D Heightmap { get; }
Property Value
| Type |
Description |
| Texture2D |
|
Index of the heightmap in the HeightmapsPalette.
Declaration
public int HeightmapIndex { get; }
Property Value
This offset will be added to calculated from heightmap terrain height
Declaration
public int Offset { get; }
Property Value
Pixel value from heightmap will be multiplied by this scale value
Declaration
public float Scale { get; }
Property Value
Methods
Applies brush to the brushView. Returns true if changes were applied
Declaration
public override bool ApplyBrush(int brushMode, int2 cellCoord, int cellIndex, TBrushTarget brushTarget, int mouseButton)
Parameters
| Type |
Name |
Description |
| int |
brushMode |
|
| int2 |
cellCoord |
|
| int |
cellIndex |
|
| TBrushTarget |
brushTarget |
|
| int |
mouseButton |
|
Returns
Overrides
Declaration
protected override void InitDefaultSettings()
Overrides
Declaration
protected override void LoadSettings()
Overrides
Declaration
protected override void SaveSettings()
Overrides
Declaration
public virtual void SetHeightmapsPalette(INativeList<HeightmapsPalette> heightmapsPalette)
Parameters
Implements
Extension Methods