Search Results for

    Show / Hide Table of Contents

    Class TerrainManager

    Inheritance
    Object
    TerrainManager
    Implements
    ITerrainManager
    IPreRunGamePriorityService
    Namespace: RTSEngine.Terrain
    Assembly: cs.temp.dll.dll
    Syntax
    public class TerrainManager : MonoBehaviour, ITerrainManager, IPreRunGamePriorityService

    Fields

    cameraBoundariesToBaseTerrainPositionMargin

    Declaration
    public CameraBoundariesMargin cameraBoundariesToBaseTerrainPositionMargin
    Field Value
    Type Description
    CameraBoundariesMargin

    Properties

    Areas

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

    BaseTerrainCameraBounds

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

    BaseTerrainLayerMask

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

    gameMgr

    Declaration
    protected IGameManager gameMgr { get; }
    Property Value
    Type Description
    IGameManager

    HeightCacheLowerLeftCorner

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

    HeightCacheUpperRightCorner

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

    logger

    Declaration
    protected IGameLoggingService logger { get; }
    Property Value
    Type Description
    IGameLoggingService

    mainCameraController

    Declaration
    protected IMainCameraController mainCameraController { get; }
    Property Value
    Type Description
    IMainCameraController

    MapSize

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

    mvtMgr

    Declaration
    protected IMovementManager mvtMgr { get; }
    Property Value
    Type Description
    IMovementManager

    ServicePriority

    Declaration
    public int ServicePriority { get; }
    Property Value
    Type Description
    Int32

    Methods

    GetTerrainAreaPosition(Vector3, TerrainAreaType, out Vector3)

    Declaration
    public 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
    public 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
    public bool GetTerrainAreaPosition(Vector3 inPosition, string areaKey, out Vector3 outPosition)
    Parameters
    Type Name Description
    Vector3 inPosition
    String areaKey
    Vector3 outPosition
    Returns
    Type Description
    Boolean

    Init(IGameManager)

    Declaration
    public void Init(IGameManager gameMgr)
    Parameters
    Type Name Description
    IGameManager gameMgr

    IsTerrainArea(GameObject)

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

    IsTerrainArea(GameObject, TerrainAreaType)

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

    IsTerrainArea(GameObject, IReadOnlyList<TerrainAreaType>)

    Declaration
    public 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, Int32)

    Declaration
    public bool IsTerrainArea(GameObject obj, int areaLayer)
    Parameters
    Type Name Description
    GameObject obj
    Int32 areaLayer
    Returns
    Type Description
    Boolean

    IsTerrainArea(GameObject, String)

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

    SampleHeight(Vector3, IMovementComponent, out Single)

    Declaration
    public 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
    public 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
    public 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
    public 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
    public 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

    Implements

    ITerrainManager
    IPreRunGamePriorityService
    In This Article
    Back to top Unity RTS Engine Documentation