Class PaintCellItemUserToolState_Int<TBrushTarget, TTerrainLayer, TChunkMeshLayerGroup, TChunkMeshLayer>
Inheritance
Implements
Inherited Members
Namespace: Fwt.HexTerrains.UserTools.SM.States.CellItems
Assembly: fwt.hexterrains.dll
Syntax
public abstract class PaintCellItemUserToolState_Int<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
PaintCellItemUserToolState_Int(ISmState)
Declaration
public PaintCellItemUserToolState_Int(ISmState parent)
Parameters
| Type | Name | Description |
|---|---|---|
| ISmState | parent |
Properties
CellValue
Declaration
public virtual int CellValue { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
IsRandomCellValue
Declaration
public virtual bool IsRandomCellValue { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RandomCellValueMax
Declaration
public virtual int RandomCellValueMax { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
RandomCellValueMin
Declaration
public virtual int RandomCellValueMin { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
InitDefaultSettings()
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
Remarks
Override this method in a subclass to provide custom initialization logic for default settings. The base implementation does not perform any actions.
LoadSettings()
Loads configuration settings for the current instance. Derived classes override this method to implement custom settings initialization.
Declaration
protected override void LoadSettings()
Overrides
Remarks
Override this method in a subclass to provide specific logic for loading or initializing settings. This method is called during the setup or initialization phase and does not perform any actions in the base implementation.
ReadCellData(TTerrainLayer, int2)
Reads actual data from terrain layer for given cell coordinate.
Declaration
protected abstract int 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 | value at the cell on given terrain layer |
SaveSettings()
Saves the current settings to the underlying storage or configuration source.
Declaration
protected override void SaveSettings()
Overrides
Remarks
Override this method in a derived class to implement custom logic for persisting settings. This method does not perform any action in the base implementation.