• Manual
  • Scripting API
  • Asset Store
  • TycoonTerrain.Core
  • BoundsContainer
Search Results for

    Show / Hide Table of Contents
    • TycoonTerrain.Components
      • TycoonTileRendererBase
    • TycoonTerrain.Core
      • BoundsContainer
      • BoundsReservationRegister
      • CallbackHandle
      • CallbacksRegister
      • CardinalDirection
      • ChunkSet
      • ConstructableDefinition
      • CornerIndex
      • Extensions
      • IChunkListener
      • IntBound
      • LandTile
      • OnBoundsChangeCallback
      • PlacementValidResult
      • SurfaceOverlayMesh
      • TerrainGrid
      • TerrainModifiedEvent
      • TerrainSelection
      • TerrainTypeCollectionAsset
      • TerrainTypeDefinition
      • TerrainTypeTable
      • TileCorner
      • TileHandle
      • TilePosition
      • TileType
      • TycoonTileMap
      • TycoonTileRaycastHit
    • TycoonTerrain.Core.Generation
      • TerrainGenerationJob
    • TycoonTerrain.Core.Rendering
      • ChunkMesh
      • IMesh
      • NativeMeshData
      • RenderTerrainCliffChunkJob
      • RenderTerrainSurfaceChunkJob
      • RenderWaterChunkJob
      • RenderWaterCliffChunkJob
      • SubMeshTriangle
    • TycoonTerrain.Core.TerrainOperations
      • ClearWaterBodyOperation
      • CopyHeightMapOperation
      • CreateWaterBodyFloodOperation
      • DecreaseHeightCliffOperation
      • DecreaseHeightCorner
      • DecreaseHeightSmoothConnectedOperation
      • GetTilesInWaterBody
      • IncreaseHeightCliffOperation
      • IncreaseHeightCorner
      • IncreaseHeightSmoothConnectedOperation
      • ITerrainOperation
      • MaxHeightSmooth
      • OperationContext
      • OperationResult
      • SetHeightOperation
      • SetTileTypeInBoundsOperation
      • SetWaterLevelOperation
    • TycoonTerrain.Previewers
      • BuildingToolPreviewer
      • PreviewMeshes
      • TerrainPainterPreviewer
      • TerrainSelectionPreviewer
      • ToolPreviewerBase<T>
    • TycoonTerrain.Tools
      • BuildingTool
      • PainterTool
      • SceneryTool
      • SelectionToolBase
      • SnappingMode
      • TerraformingTool
      • ToolBase
      • WaterTool

    Class BoundsContainer

    Stores bounds and enables for easy retrieval of bounds within a certain position or bounds.

    Inheritance
    Object
    BoundsContainer
    Namespace: TycoonTerrain.Core
    Assembly: TycoonTerrainAssembly.dll
    Syntax
    public class BoundsContainer

    Constructors

    BoundsContainer()

    Declaration
    public BoundsContainer()

    Methods

    Clear()

    Clears all the bounds from the container.

    Declaration
    public void Clear()

    GetBoundsFor(Int32)

    Returns the bounds registered for a given identifier.

    Declaration
    public IntBound GetBoundsFor(int id)
    Parameters
    Type Name Description
    Int32 id

    The indentifier.

    Returns
    Type Description
    IntBound

    GetIdsInTile(int2)

    Get all the callbacks that lie within a given bounds.

    Declaration
    public IEnumerable<int> GetIdsInTile(int2 position)
    Parameters
    Type Name Description
    Unity.Mathematics.int2 position

    The position to check against.

    Returns
    Type Description
    IEnumerable<Int32>

    GetIdsWithinBounds(IntBound)

    Get all the callbacks that lie within a given bounds.

    Declaration
    public IEnumerable<int> GetIdsWithinBounds(IntBound bounds)
    Parameters
    Type Name Description
    IntBound bounds

    The bounds to check against.

    Returns
    Type Description
    IEnumerable<Int32>

    IsHandleRegistered(Int32)

    Returns whether the given callback handle is currently registered in this collection.

    Declaration
    public bool IsHandleRegistered(int id)
    Parameters
    Type Name Description
    Int32 id
    Returns
    Type Description
    Boolean

    Register(Int32, IntBound)

    Adds the given callback handler to the collection.

    Declaration
    public bool Register(int id, IntBound bounds)
    Parameters
    Type Name Description
    Int32 id
    IntBound bounds

    The bounds.

    Returns
    Type Description
    Boolean

    Unregister(Int32)

    Removes the callback and its bounds from the collection.

    Declaration
    public void Unregister(int id)
    Parameters
    Type Name Description
    Int32 id
    In This Article
    • Constructors
      • BoundsContainer()
    • Methods
      • Clear()
      • GetBoundsFor(Int32)
      • GetIdsInTile(int2)
      • GetIdsWithinBounds(IntBound)
      • IsHandleRegistered(Int32)
      • Register(Int32, IntBound)
      • Unregister(Int32)
    Back to top Tycoon Tile documentation