Class PaintCellItemAllDataUserToolStateBase<TBrushTarget, TTerrainLayer, TChunkMeshLayerGroup, TChunkMeshLayer>
Inheritance
PaintCellItemAllDataUserToolStateBase<TBrushTarget, TTerrainLayer, TChunkMeshLayerGroup, TChunkMeshLayer>
Assembly: fwt.hexterrains.dll
public abstract class PaintCellItemAllDataUserToolStateBase<TBrushTarget, TTerrainLayer, TChunkMeshLayerGroup, TChunkMeshLayer> : PaintCellItemUserToolStateBase<TBrushTarget, TTerrainLayer, TChunkMeshLayerGroup, TChunkMeshLayer>, ISmState where TBrushTarget : HexTerrainLayerGroup where TTerrainLayer : CellItemLayer where TChunkMeshLayerGroup : HexTerrainLayerGroup, IComponentData where TChunkMeshLayer : ChunkMeshLayer
Type Parameters
| Name |
Description |
| TBrushTarget |
|
| TTerrainLayer |
|
| TChunkMeshLayerGroup |
|
| TChunkMeshLayer |
|
Constructors
Declaration
public PaintCellItemAllDataUserToolStateBase(ISmState parent)
Parameters
Properties
Declaration
public virtual int ItemIndex { get; set; }
Property Value
Declaration
public virtual Vector3 ItemPosition { get; set; }
Property Value
Declaration
public virtual Vector3 ItemRotation { get; set; }
Property Value
Declaration
public virtual Quaternion ItemRotationQuaternion { get; set; }
Property Value
| Type |
Description |
| Quaternion |
|
Declaration
public virtual Vector3 ItemScale { get; set; }
Property Value
Declaration
public virtual int ItemState { 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
Initializes the default settings for the current instance. This method is intended to be overridden in
derived classes to configure initial values or options as needed.
Declaration
protected override void InitDefaultSettings()
Overrides
Loads configuration settings for the current instance. Derived classes override this method to implement
custom settings initialization.
Declaration
protected override void LoadSettings()
Overrides
Reads actual data from terrain layer for given cell coordinate.
Declaration
protected (int, int, Vector3, Quaternion, Vector3) ReadCellData(TTerrainLayer layer, int2 cellCoord)
Parameters
| Type |
Name |
Description |
| TTerrainLayer |
layer |
terrain layer to read data from
|
| int2 |
cellCoord |
coordinate to get data at
|
Returns
| Type |
Description |
| (int, int, Vector3, Quaternion, Vector3) |
value at the cell on given terrain layer
|
Saves the current settings to the underlying storage or configuration source.
Declaration
protected override void SaveSettings()
Overrides
Implements
Extension Methods