Class DeformHeightUserToolState<TBrushTarget>
Inheritance
DeformHeightUserToolState<TBrushTarget>
Assembly: fwt.hexterrains.dll
public abstract class DeformHeightUserToolState<TBrushTarget> : BrushUserToolState<TBrushTarget>, ISmState where TBrushTarget : HexSurfaceLayer
Type Parameters
| Name |
Description |
| TBrushTarget |
|
Constructors
Declaration
public DeformHeightUserToolState(IHexTerrainAPI userToolAPI)
Parameters
Fields
Declaration
[Tooltip("Basic amount of height change")]
public int BaseDelta
Field Value
Declaration
[Tooltip("If this key is pressed, the value applied to brush target is inverted")]
public KeyCode InvertKey
Field Value
Declaration
[Tooltip("If this key is pressed, the delta height value will be multiplied by Turbo Koeffitient")]
public KeyCode TurboKey
Field Value
Declaration
[Tooltip("Delta height multiplier that is applied if TurboKey is pressed")]
public int TurboKoeffitient
Field 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
Implements
Extension Methods