Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Class MinimapScreenDataSource

    Inheritance
    object
    UIDataSource
    MinimapScreenDataSource
    Implements
    IDataSourceViewHashProvider
    ICommitChanges
    Inherited Members
    UIDataSource.Version
    UIDataSource.MarkDirty()
    UIDataSource.GetViewHashCode()
    UIDataSource.CommitChanges()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Fwt.HexTerrains.DataSources
    Assembly: fwt.hexterrains.dll
    Syntax
    [Serializable]
    public class MinimapScreenDataSource : UIDataSource, IDataSourceViewHashProvider, ICommitChanges

    Fields

    CameraNormalizedPosition

    Declaration
    [CreateProperty]
    public Vector2 CameraNormalizedPosition
    Field Value
    Type Description
    Vector2

    CameraRotation

    Declaration
    [CreateProperty]
    public float CameraRotation
    Field Value
    Type Description
    float

    ColorMaps

    Declaration
    [CreateProperty]
    public List<MinimapScreenDataSource.ColorMapDataSource> ColorMaps
    Field Value
    Type Description
    List<MinimapScreenDataSource.ColorMapDataSource>

    OnMinimapClick

    Declaration
    [CreateProperty]
    public UnityEvent<float2> OnMinimapClick
    Field Value
    Type Description
    UnityEvent<float2>

    OnViewModeChange

    Declaration
    [CreateProperty]
    public UnityEvent<int> OnViewModeChange
    Field Value
    Type Description
    UnityEvent<int>

    ViewModeIndex

    Declaration
    [CreateProperty]
    public int ViewModeIndex
    Field Value
    Type Description
    int

    ViewModeName

    Declaration
    [CreateProperty]
    public string ViewModeName
    Field Value
    Type Description
    string

    ViewModes

    Declaration
    [CreateProperty]
    public List<MinimapScreenDataSource.ViewModeDataSource> ViewModes
    Field Value
    Type Description
    List<MinimapScreenDataSource.ViewModeDataSource>

    Methods

    SetDataFromConfig(IViewModeCollectionConfig)

    Declaration
    public virtual void SetDataFromConfig(IViewModeCollectionConfig viewModeCollection)
    Parameters
    Type Name Description
    IViewModeCollectionConfig viewModeCollection

    SetDataFromConfig(int, IViewModeConfig, EntityManager?, Entity?)

    Updates the color map textures using the specified view mode configuration.

    Declaration
    public virtual void SetDataFromConfig(int viewModeIndex, IViewModeConfig viewModeConfig, EntityManager? entityManager, Entity? terrainEntity)
    Parameters
    Type Name Description
    int viewModeIndex
    IViewModeConfig viewModeConfig

    The configuration object that provides the color map textures to apply. If null, no changes are made.

    EntityManager? entityManager
    Entity? terrainEntity
    Remarks

    This method replaces the current color map textures with those provided by the configuration. Existing textures are cleared before applying the new set.

    Implements

    UnityEngine.UIElements.IDataSourceViewHashProvider
    ICommitChanges

    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