Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Class StampCellMineralsUserToolState

    Inheritance
    object
    SmState
    UserToolStateBase
    HexTerrainUserToolStateBase
    BrushUserToolState<CellMineralsLayerGroup>
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen>
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>
    StampCellMineralsUserToolState
    Implements
    ISmState
    Inherited Members
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.TerrainLayerIndex
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.OriginXCoord
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.OriginYCoord
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.OriginCoordinate
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.OriginCellIndex
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.ReadCellKey
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.StartPaintCellCoord
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.Init(UserToolStateSettings)
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.Init<TInitArgs>(TInitArgs)
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.PrepareToRun()
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.InitDefaultSettings()
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.SaveSettings()
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.LoadSettings()
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.UpdateBrush()
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.ApplyBrush(int, int2, int, CellMineralsLayerGroup, int)
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.ReadOriginCellData(CellMineralsLayer, int, out (uint, float))
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.SetCellDataToTarget(CellMineralsLayer, int, (uint, float))
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.IsGetLayerByIndex
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.TerrainLayerIndex
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.IsGetLayerByName
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.TerrainLayerName
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.ViewModeByLayerIndex
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.Init<TInitArgs>(TInitArgs)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.UpdateSettingsScreen()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.OnTerrainLayerChanged()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.UpdateDescriptionAndErrorMessageOnDataSource()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.TrySetViewMode()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.GetViewModeByLayerIndex(int)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.GetTerrainLayer()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.GetTerrainLayer(CellMineralsLayerGroup)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.GetTerrainLayer(CellMineralsLayerGroup, int, string)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.GetTerrainLayer(CellMineralsLayerGroup, int)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen, CellMineralsLayer>.GetTerrainLayer(CellMineralsLayerGroup, string)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen>.SettingsScreen
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen>.PrepareToRun()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen>.PrepareToStop()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen>.GetSettingsScreen()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource, UniversalToolSettingsScreen>.UpdateSettingsScreen()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.DataSource
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.SettingsPlayerPrefsKeyName
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.PrepareToRun()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.InitSettings()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.InitDefaultSettings()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.PrepareToStop()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.LoadSettings()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.SaveSettings()
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.SaveSettingsValue<TValue>(string, TValue)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.LoadSettingsValue<TValue>(string, TValue)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.TryLoadSettingsValue<TValue>(string, out TValue)
    BrushUserToolState<CellMineralsLayerGroup, UserToolSettingsDataSource>.LoadSettingsValueOrDefault<TValue>(string, TValue)
    BrushUserToolState<CellMineralsLayerGroup>.PrevChangeTimeStamp
    BrushUserToolState<CellMineralsLayerGroup>.TimeTreshold
    BrushUserToolState<CellMineralsLayerGroup>.CanChangeBrushSize
    BrushUserToolState<CellMineralsLayerGroup>.AllowRightMouseButton
    BrushUserToolState<CellMineralsLayerGroup>.CursorColor
    BrushUserToolState<CellMineralsLayerGroup>.ChangeModeKey
    BrushUserToolState<CellMineralsLayerGroup>.ChangeBrushSizeKey
    BrushUserToolState<CellMineralsLayerGroup>.ChangeOpacityKey
    BrushUserToolState<CellMineralsLayerGroup>.IncreaseBrushSizeKey
    BrushUserToolState<CellMineralsLayerGroup>.IncreaseBrushSizeKey2
    BrushUserToolState<CellMineralsLayerGroup>.DecreaseBrushSizeKey
    BrushUserToolState<CellMineralsLayerGroup>.DecreaseBrushSizeKey2
    BrushUserToolState<CellMineralsLayerGroup>.IsTimeTresholdPassed
    BrushUserToolState<CellMineralsLayerGroup>.BrushSize
    BrushUserToolState<CellMineralsLayerGroup>.BrushOpacity
    BrushUserToolState<CellMineralsLayerGroup>.ChangeOpacityMultiplier
    BrushUserToolState<CellMineralsLayerGroup>.Init<TInitArgs>(TInitArgs)
    BrushUserToolState<CellMineralsLayerGroup>.SetNewTimestamp()
    BrushUserToolState<CellMineralsLayerGroup>.PrepareToRun()
    BrushUserToolState<CellMineralsLayerGroup>.PrepareToStop()
    BrushUserToolState<CellMineralsLayerGroup>.Tick()
    BrushUserToolState<CellMineralsLayerGroup>.UpdateBrush()
    BrushUserToolState<CellMineralsLayerGroup>.TryApplyBrush()
    BrushUserToolState<CellMineralsLayerGroup>.ApplyToSingleCell(int, int2, int, CellMineralsLayerGroup, int)
    BrushUserToolState<CellMineralsLayerGroup>.ApplyBrushToAllCells(int, HexTerrainSettings, CellMineralsLayerGroup, int)
    BrushUserToolState<CellMineralsLayerGroup>.ApplyBrushToAllBrushPoints(int, int2, int, HexTerrainSettings, CellMineralsLayerGroup, int)
    BrushUserToolState<CellMineralsLayerGroup>.ApplyBrush(int, int2, int, CellMineralsLayerGroup, int)
    BrushUserToolState<CellMineralsLayerGroup>.CanBeAppliedToManyPoints(int)
    BrushUserToolState<CellMineralsLayerGroup>.IsAppliedToEveryCellOnMap(int)
    BrushUserToolState<CellMineralsLayerGroup>.GetBrushTarget()
    HexTerrainUserToolStateBase.TerrainAPI
    HexTerrainUserToolStateBase.HexTerrainUserToolSettings
    HexTerrainUserToolStateBase.PreviousViewMode
    HexTerrainUserToolStateBase.Init(HexTerrainUserToolStateSettings)
    HexTerrainUserToolStateBase.Init(IHexTerrainAPI)
    HexTerrainUserToolStateBase.Init<TInitArgs>(IHexTerrainAPI, TInitArgs)
    HexTerrainUserToolStateBase.ShowSettingsScreen<TViewData, TScreen>(TViewData)
    HexTerrainUserToolStateBase.GetUIScreen<TScreen>()
    HexTerrainUserToolStateBase.HideSettingsScreen<TScreen>()
    HexTerrainUserToolStateBase.SetupTerrainCursor(bool, int)
    HexTerrainUserToolStateBase.SetupTerrainCursor(bool, int, Color32)
    HexTerrainUserToolStateBase.SetupTerrainCursor(bool, int, Color32, bool)
    HexTerrainUserToolStateBase.SetupTerrainCursor(bool)
    HexTerrainUserToolStateBase.GetTerrainLayer<TLayerGroup, TLayer>(HexTerrainLayerReference)
    HexTerrainUserToolStateBase.TrySetViewMode()
    HexTerrainUserToolStateBase.SetViewMode(SetViewModeRequest)
    HexTerrainUserToolStateBase.TryRestoreViewMode()
    UserToolStateBase.Settings
    UserToolStateBase.Parent
    UserToolStateBase.ParentStateMachine
    UserToolStateBase.Init(UserToolStateSettings)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Fwt.HexTerrains.UserTools.SM.States.Minerals
    Assembly: fwt.hexterrains.dll
    Syntax
    public class StampCellMineralsUserToolState : StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>, ISmState

    Constructors

    StampCellMineralsUserToolState(ISmState)

    Declaration
    public StampCellMineralsUserToolState(ISmState parent)
    Parameters
    Type Name Description
    ISmState parent

    Properties

    UserToolType

    Type identifier for the user tool. Allows state machine to change states based on tool type instead of state index.

    Declaration
    public override int UserToolType { get; }
    Property Value
    Type Description
    int
    Overrides
    UserToolStateBase.UserToolType

    Methods

    ReadOriginCellData(CellMineralsLayer, int, out (uint, float))

    Attempts to read the original cell data for the specified terrain layer and cell index.

    Declaration
    public override bool ReadOriginCellData(CellMineralsLayer terrainLayer, int cellIndex, out (uint, float) cellData)
    Parameters
    Type Name Description
    CellMineralsLayer terrainLayer

    The terrain layer from which to retrieve cell data. Cannot be null.

    int cellIndex

    The zero-based index of the cell within the terrain layer whose data is to be read. Must be within the valid range of cell indices for the specified layer.

    (uint, float) cellData

    When this method returns, contains the cell data associated with the specified cell index if the operation succeeds; otherwise, contains the default value for the cell data type.

    Returns
    Type Description
    bool

    true if the cell data was successfully read; otherwise, false.

    Overrides
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.ReadOriginCellData(CellMineralsLayer, int, out (uint, float))

    SetCellDataToTarget(CellMineralsLayer, int, (uint, float))

    Attempts to set the specified cell data on the target terrain layer at the given cell index.

    Declaration
    public override bool SetCellDataToTarget(CellMineralsLayer terrainLayer, int cellIndex, (uint, float) cellData)
    Parameters
    Type Name Description
    CellMineralsLayer terrainLayer

    The terrain layer on which to set the cell data. Cannot be null.

    int cellIndex

    The zero-based index of the cell within the terrain layer to update. Must be within the valid range of cell indices for the layer.

    (uint, float) cellData

    The cell data to assign to the specified cell. Cannot be null.

    Returns
    Type Description
    bool

    true if the cell data was successfully set; otherwise, false.

    Overrides
    StampUserToolStateBase<CellMineralsLayerGroup, CellMineralsLayer, (uint, float)>.SetCellDataToTarget(CellMineralsLayer, int, (uint, float))
    Remarks

    This method does not modify the terrain layer if the cell index is out of range or if the cell data is invalid. Implementations may impose additional constraints on valid cell data or indices.

    Implements

    ISmState

    Extension Methods

    HashExtensions.GetHashCode_RefType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX