Class PaintCellEntitiesUserToolState<TBrushTarget, THexSurface>
Inheritance
PaintCellEntitiesUserToolState<TBrushTarget, THexSurface>
Assembly: fwt.hexterrains.dll
public abstract class PaintCellEntitiesUserToolState<TBrushTarget, THexSurface> : BrushUserToolState<TBrushTarget, UserToolSettingsDataSource, UniversalToolSettingsScreen>, ISmState where TBrushTarget : CellEntitiesLayer where THexSurface : HexSurfaceLayer
Type Parameters
| Name |
Description |
| TBrushTarget |
|
| THexSurface |
|
Constructors
Declaration
protected PaintCellEntitiesUserToolState(IHexTerrainAPI userToolAPI)
Parameters
Fields
Declaration
public KeyCode ReadCellKey
Field Value
Properties
Declaration
public CellEntity CellEntity { get; set; }
Property Value
Declaration
public int CellEntityId { get; set; }
Property Value
Declaration
public int CellEntityState { get; set; }
Property Value
Declaration
public int MaxCellHeight { get; set; }
Property Value
Declaration
public int MinCellHeight { get; set; }
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
public override bool IsAppliedToEveryCellOnMap(int brushMode)
Parameters
| Type |
Name |
Description |
| int |
brushMode |
|
Returns
Overrides
Declaration
protected override void LoadSettings()
Overrides
Declaration
protected virtual CellEntity ReadCellItem(TBrushTarget brushTarget, int2 cellCoord)
Parameters
| Type |
Name |
Description |
| TBrushTarget |
brushTarget |
|
| int2 |
cellCoord |
|
Returns
Declaration
protected override void SaveSettings()
Overrides
Implements
Extension Methods