• Manual
  • Scripting API
  • Asset Store
  • TycoonTerrain.Core
  • CallbacksRegister
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 CallbacksRegister

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

    Constructors

    CallbacksRegister()

    Declaration
    public CallbacksRegister()

    Methods

    GetCallbacksForBounds(IntBound)

    Get all the callbacks that lie within a given bounds.

    Declaration
    public IEnumerable<OnBoundsChangeCallback> GetCallbacksForBounds(IntBound bounds)
    Parameters
    Type Name Description
    IntBound bounds

    The bounds to check against.

    Returns
    Type Description
    IEnumerable<OnBoundsChangeCallback>

    GetCallbacksForBounds(int2)

    Get all the callbacks that lie within a given bounds.

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

    The position to check against.

    Returns
    Type Description
    IEnumerable<OnBoundsChangeCallback>

    IsHandleRegistered(CallbackHandle)

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

    Declaration
    public bool IsHandleRegistered(CallbackHandle handle)
    Parameters
    Type Name Description
    CallbackHandle handle

    The handle.

    Returns
    Type Description
    Boolean

    Register(IntBound, OnBoundsChangeCallback)

    Adds the given callback handler to the collection.

    Declaration
    public CallbackHandle Register(IntBound bounds, OnBoundsChangeCallback callback)
    Parameters
    Type Name Description
    IntBound bounds

    The bounds.

    OnBoundsChangeCallback callback

    The callback.

    Returns
    Type Description
    CallbackHandle

    Unregister(CallbackHandle)

    Removes the callback and its bounds from the collection.

    Declaration
    public void Unregister(CallbackHandle handle)
    Parameters
    Type Name Description
    CallbackHandle handle
    In This Article
    • Constructors
      • CallbacksRegister()
    • Methods
      • GetCallbacksForBounds(IntBound)
      • GetCallbacksForBounds(int2)
      • IsHandleRegistered(CallbackHandle)
      • Register(IntBound, OnBoundsChangeCallback)
      • Unregister(CallbackHandle)
    Back to top Tycoon Tile documentation