Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Class BrushUserToolState<TBrushTarget, TSettings>

    Inheritance
    object
    SmState
    UserToolStateBase
    BrushUserToolState<TBrushTarget>
    BrushUserToolState<TBrushTarget, TSettings>
    BrushUserToolState<TBrushTarget, TSettings, TSettingsScreen>
    Implements
    ISmState
    Inherited Members
    BrushUserToolState<TBrushTarget>.PrevChangeTimeStamp
    BrushUserToolState<TBrushTarget>.TimeTreshold
    BrushUserToolState<TBrushTarget>.CanChangeBrushSize
    BrushUserToolState<TBrushTarget>.AllowRightMouseButton
    BrushUserToolState<TBrushTarget>.CursorColor
    BrushUserToolState<TBrushTarget>.ChangeModeKey
    BrushUserToolState<TBrushTarget>.ChangeBrushSizeKey
    BrushUserToolState<TBrushTarget>.IncreaseBrushSizeKey
    BrushUserToolState<TBrushTarget>.IncreaseBrushSizeKey2
    BrushUserToolState<TBrushTarget>.DecreaseBrushSizeKey
    BrushUserToolState<TBrushTarget>.DecreaseBrushSizeKey2
    BrushUserToolState<TBrushTarget>.ChangeOpacityKey
    BrushUserToolState<TBrushTarget>.IsTimeTresholdPassed
    BrushUserToolState<TBrushTarget>.BrushSize
    BrushUserToolState<TBrushTarget>.BrushOpacity
    BrushUserToolState<TBrushTarget>.ChangeOpacityMultiplier
    BrushUserToolState<TBrushTarget>.SetNewTimestamp()
    BrushUserToolState<TBrushTarget>.Tick()
    BrushUserToolState<TBrushTarget>.UpdateBrush()
    BrushUserToolState<TBrushTarget>.TryApplyBrush()
    BrushUserToolState<TBrushTarget>.ApplyToSingleCell(int, int2, int, TBrushTarget, int)
    BrushUserToolState<TBrushTarget>.ApplyBrushToAllCells(int, HexTerrainSettings, TBrushTarget, int)
    BrushUserToolState<TBrushTarget>.ApplyBrushToAllBrushPoints(int, int2, int, HexTerrainSettings, TBrushTarget, int)
    BrushUserToolState<TBrushTarget>.ApplyBrush(int, int2, int, TBrushTarget, int)
    BrushUserToolState<TBrushTarget>.CanBeAppliedToManyPoints(int)
    BrushUserToolState<TBrushTarget>.IsAppliedToEveryCellOnMap(int)
    BrushUserToolState<TBrushTarget>.GetBrushTarget()
    UserToolStateBase.Settings
    UserToolStateBase.IsSubstatesVisible
    UserToolStateBase.SubStateMachine
    UserToolStateBase.UserToolType
    UserToolStateBase.UserToolAPI
    UserToolStateBase.HasSubtools
    UserToolStateBase.IsChangeViewMode
    UserToolStateBase.RequiredViewMode
    UserToolStateBase.OriginalViewMode
    UserToolStateBase.ShowSettingsScreen<TViewData, TScreen>(TViewData)
    UserToolStateBase.GetUIScreen<TScreen>()
    UserToolStateBase.HideSettingsScreen<TScreen>()
    UserToolStateBase.SetupPlanetCursor(bool, int)
    UserToolStateBase.SetupPlanetCursor(bool, int, Color32)
    UserToolStateBase.SetupPlanetCursor(bool, int, Color32, bool)
    UserToolStateBase.SetupPlanetCursor(bool)
    UserToolStateBase.TrySetViewMode()
    UserToolStateBase.TryRestoreViewMode()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Fwt.HexTerrains.TerrainEditors.StateMachines
    Assembly: fwt.hexterrains.dll
    Syntax
    public abstract class BrushUserToolState<TBrushTarget, TSettings> : BrushUserToolState<TBrushTarget>, ISmState where TBrushTarget : class
    Type Parameters
    Name Description
    TBrushTarget
    TSettings

    Constructors

    BrushUserToolState(IHexTerrainAPI)

    Declaration
    protected BrushUserToolState(IHexTerrainAPI userToolAPI)
    Parameters
    Type Name Description
    IHexTerrainAPI userToolAPI

    Fields

    DataSource

    Declaration
    [SerializeField]
    public TSettings DataSource
    Field Value
    Type Description
    TSettings

    Properties

    SettingsPlayerPrefsKeyName

    Declaration
    protected string SettingsPlayerPrefsKeyName { get; }
    Property Value
    Type Description
    string

    Methods

    InitDefaultSettings()

    Declaration
    protected virtual void InitDefaultSettings()

    InitSettings()

    Declaration
    protected virtual void InitSettings()

    LoadSettings()

    Declaration
    protected virtual void LoadSettings()

    LoadSettingsValueOrDefault<TValue>(string, TValue)

    Declaration
    protected virtual TValue LoadSettingsValueOrDefault<TValue>(string valueName, TValue defaultValue = default)
    Parameters
    Type Name Description
    string valueName
    TValue defaultValue
    Returns
    Type Description
    TValue
    Type Parameters
    Name Description
    TValue

    LoadSettingsValue<TValue>(string, TValue)

    Declaration
    protected virtual TValue LoadSettingsValue<TValue>(string valueName, TValue value)
    Parameters
    Type Name Description
    string valueName
    TValue value
    Returns
    Type Description
    TValue
    Type Parameters
    Name Description
    TValue

    PrepareToRun()

    Declaration
    public override void PrepareToRun()
    Overrides
    BrushUserToolState<TBrushTarget>.PrepareToRun()

    PrepareToStop()

    Declaration
    public override void PrepareToStop()
    Overrides
    BrushUserToolState<TBrushTarget>.PrepareToStop()

    SaveSettings()

    Declaration
    protected virtual void SaveSettings()

    SaveSettingsValue<TValue>(string, TValue)

    Declaration
    protected virtual void SaveSettingsValue<TValue>(string valueName, TValue value)
    Parameters
    Type Name Description
    string valueName
    TValue value
    Type Parameters
    Name Description
    TValue

    TryLoadSettingsValue<TValue>(string, out TValue)

    Declaration
    protected virtual bool TryLoadSettingsValue<TValue>(string valueName, out TValue value)
    Parameters
    Type Name Description
    string valueName
    TValue value
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    TValue

    Implements

    ISmState

    Extension Methods

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