Class PaintCellItemUserToolState_Vector3<TBrushTarget, TTerrainLayer, TChunkMeshLayerGroup, TChunkMeshLayer>
Inheritance
Implements
Inherited Members
Namespace: Fwt.HexTerrains.UserTools.SM.States.CellItems
Assembly: fwt.hexterrains.dll
Syntax
public abstract class PaintCellItemUserToolState_Vector3<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_Vector3(ISmState)
Declaration
public PaintCellItemUserToolState_Vector3(ISmState parent)
Parameters
| Type | Name | Description |
|---|---|---|
| ISmState | parent |
Properties
CellValue
Declaration
public virtual Vector3 CellValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
DataSourceItemsCount
Declaration
public override int DataSourceItemsCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
IsRandomCellValue
Declaration
public virtual bool IsRandomCellValue { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RandomCellValueMax
Declaration
public virtual Vector3 RandomCellValueMax { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
RandomCellValueMin
Declaration
public virtual Vector3 RandomCellValueMin { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
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 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 |
|---|---|
| Vector3 | 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.