Search Results for

    Show / Hide Table of Contents

    Interface ITerrainManager

    Namespace: RTSEngine.Terrain
    Assembly: cs.temp.dll.dll
    Syntax
    public interface ITerrainManager : IPreRunGamePriorityService

    Properties

    Areas

    Declaration
    IEnumerable<TerrainAreaType> Areas { get; }
    Property Value
    Type Description
    IEnumerable<TerrainAreaType>

    BaseTerrainCameraBounds

    Declaration
    CameraBoundariesToTerrainPositions BaseTerrainCameraBounds { get; }
    Property Value
    Type Description
    CameraBoundariesToTerrainPositions

    BaseTerrainLayerMask

    Declaration
    LayerMask BaseTerrainLayerMask { get; }
    Property Value
    Type Description
    LayerMask

    HeightCacheLowerLeftCorner

    Declaration
    Int2D HeightCacheLowerLeftCorner { get; }
    Property Value
    Type Description
    Int2D

    HeightCacheUpperRightCorner

    Declaration
    Int2D HeightCacheUpperRightCorner { get; }
    Property Value
    Type Description
    Int2D

    MapSize

    Declaration
    float MapSize { get; }
    Property Value
    Type Description
    System.Single

    Methods

    GetTerrainAreaPosition(Vector3, TerrainAreaType, out Vector3)

    Declaration
    bool GetTerrainAreaPosition(Vector3 inPosition, TerrainAreaType areaType, out Vector3 outPosition)
    Parameters
    Type Name Description
    Vector3 inPosition
    TerrainAreaType areaType
    Vector3 outPosition
    Returns
    Type Description
    Boolean

    GetTerrainAreaPosition(Vector3, IReadOnlyList<TerrainAreaType>, out Vector3)

    Declaration
    bool GetTerrainAreaPosition(Vector3 inPosition, IReadOnlyList<TerrainAreaType> areaTypes, out Vector3 outPosition)
    Parameters
    Type Name Description
    Vector3 inPosition
    System.Collections.Generic.IReadOnlyList<TerrainAreaType> areaTypes
    Vector3 outPosition
    Returns
    Type Description
    Boolean

    GetTerrainAreaPosition(Vector3, String, out Vector3)

    Declaration
    bool GetTerrainAreaPosition(Vector3 inPosition, string areaKey, out Vector3 outPosition)
    Parameters
    Type Name Description
    Vector3 inPosition
    String areaKey
    Vector3 outPosition
    Returns
    Type Description
    Boolean

    IsTerrainArea(GameObject)

    Declaration
    bool IsTerrainArea(GameObject obj)
    Parameters
    Type Name Description
    GameObject obj
    Returns
    Type Description
    Boolean

    IsTerrainArea(GameObject, TerrainAreaType)

    Declaration
    bool IsTerrainArea(GameObject obj, TerrainAreaType areaType)
    Parameters
    Type Name Description
    GameObject obj
    TerrainAreaType areaType
    Returns
    Type Description
    Boolean

    IsTerrainArea(GameObject, IReadOnlyList<TerrainAreaType>)

    Declaration
    bool IsTerrainArea(GameObject obj, IReadOnlyList<TerrainAreaType> areaTypes)
    Parameters
    Type Name Description
    GameObject obj
    System.Collections.Generic.IReadOnlyList<TerrainAreaType> areaTypes
    Returns
    Type Description
    Boolean

    IsTerrainArea(GameObject, String)

    Declaration
    bool IsTerrainArea(GameObject obj, string areaKey)
    Parameters
    Type Name Description
    GameObject obj
    String areaKey
    Returns
    Type Description
    Boolean

    SampleHeight(Vector3, IMovementComponent, out Single)

    Declaration
    bool SampleHeight(Vector3 position, IMovementComponent refMvtComp, out float height)
    Parameters
    Type Name Description
    Vector3 position
    IMovementComponent refMvtComp
    System.Single height
    Returns
    Type Description
    Boolean

    SampleHeight(Vector3, IReadOnlyList<TerrainAreaType>, out Single)

    Declaration
    bool SampleHeight(Vector3 position, IReadOnlyList<TerrainAreaType> areaTypes, out float height)
    Parameters
    Type Name Description
    Vector3 position
    System.Collections.Generic.IReadOnlyList<TerrainAreaType> areaTypes
    System.Single height
    Returns
    Type Description
    Boolean

    ScreenPointToTerrainPoint(Vector3, IReadOnlyList<TerrainAreaType>, out Vector3)

    Declaration
    bool ScreenPointToTerrainPoint(Vector3 screenPoint, IReadOnlyList<TerrainAreaType> areaTypes, out Vector3 terrainPoint)
    Parameters
    Type Name Description
    Vector3 screenPoint
    System.Collections.Generic.IReadOnlyList<TerrainAreaType> areaTypes
    Vector3 terrainPoint
    Returns
    Type Description
    Boolean

    TerrainAreasToMask(IReadOnlyList<TerrainAreaType>)

    Declaration
    TerrainAreaMask TerrainAreasToMask(IReadOnlyList<TerrainAreaType> areaTypes)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<TerrainAreaType> areaTypes
    Returns
    Type Description
    TerrainAreaMask

    TryGetCachedHeight(Vector3, IReadOnlyList<TerrainAreaType>, out Single, Boolean)

    Declaration
    ErrorMessage TryGetCachedHeight(Vector3 position, IReadOnlyList<TerrainAreaType> areaTypes, out float height, bool logWarning = false)
    Parameters
    Type Name Description
    Vector3 position
    System.Collections.Generic.IReadOnlyList<TerrainAreaType> areaTypes
    System.Single height
    Boolean logWarning
    Returns
    Type Description
    ErrorMessage
    In This Article
    Back to top Unity RTS Engine Documentation