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

    A placement valid result allows buildings to define different reasons why a placement is invalid.

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

    Properties

    InvalidReason

    Gets the reason for the placement to be invalid, if applicaple. Returns null for valid placements.

    Declaration
    public string InvalidReason { get; }
    Property Value
    Type Description
    String

    The reason for the placement to be invalid.

    IsValid

    Returns whether the placement is valid.

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    Boolean

    true if this placement is valid; otherwise, false.

    Valid

    Creates a valid placement result.

    Declaration
    public static PlacementValidResult Valid { get; }
    Property Value
    Type Description
    PlacementValidResult

    A valid placement result.

    Methods

    Invalid(String)

    Creates an invalid placement result with the specified reason.

    Declaration
    public static PlacementValidResult Invalid(string reason)
    Parameters
    Type Name Description
    String reason

    The reason.

    Returns
    Type Description
    PlacementValidResult

    An invalid placement result with reason as the reason.

    In This Article
    • Properties
      • InvalidReason
      • IsValid
      • Valid
    • Methods
      • Invalid(String)
    Back to top Tycoon Tile documentation