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

    Struct TileCorner

    Represents a corner of a single tile at a given tile position.

    Namespace: TycoonTerrain.Core
    Assembly: TycoonTerrainAssembly.dll
    Syntax
    public struct TileCorner : IEquatable<TileCorner>

    Properties

    Corner

    Gets the corner index of this tile corner.

    Declaration
    public CornerIndex Corner { get; }
    Property Value
    Type Description
    CornerIndex

    The corner index of this tile corner.

    TilePosition

    Gets the tile position of this tile corner.

    Declaration
    public int2 TilePosition { get; }
    Property Value
    Type Description
    Unity.Mathematics.int2

    The tile position of this tile corner.

    Methods

    Equals(Object)

    Determines whether the specified Object, is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to compare with this instance.

    Returns
    Type Description
    Boolean

    true if the specified Object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(Object)

    Equals(TileCorner)

    Equalses the specified other.

    Declaration
    public bool Equals(TileCorner other)
    Parameters
    Type Name Description
    TileCorner other

    The other.

    Returns
    Type Description
    Boolean

    true if the specified TileCorner is equal to this instance; otherwise, false.

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    ValueType.GetHashCode()

    OppositeCorner()

    Gets the tile corner that opposite of this tile corner.

    Declaration
    public TileCorner OppositeCorner()
    Returns
    Type Description
    TileCorner

    The opposite tile corner of the same tile.

    RotateClockWise()

    Gets the tile corner that is rotated 90 degrees in clockwise direction when view top-down.

    Declaration
    public TileCorner RotateClockWise()
    Returns
    Type Description
    TileCorner

    The tile corner that is rotated 90 degrees in clockwise direction.

    RotateCounterClockWise()

    Gets the tile corner that is rotated 90 degrees in counter-clockwise direction when view top-down.

    Declaration
    public TileCorner RotateCounterClockWise()
    Returns
    Type Description
    TileCorner

    The tile corner that is rotated 90 degrees in counter-clockwise direction.

    ToString()

    Converts to string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Overrides
    ValueType.ToString()

    Operators

    Equality(TileCorner, TileCorner)

    Implements the operator ==.

    Declaration
    public static bool operator ==(TileCorner left, TileCorner right)
    Parameters
    Type Name Description
    TileCorner left

    The left.

    TileCorner right

    The right.

    Returns
    Type Description
    Boolean

    The result of the operator.

    Inequality(TileCorner, TileCorner)

    Implements the operator !=.

    Declaration
    public static bool operator !=(TileCorner left, TileCorner right)
    Parameters
    Type Name Description
    TileCorner left

    The left.

    TileCorner right

    The right.

    Returns
    Type Description
    Boolean

    The result of the operator.

    In This Article
    • Properties
      • Corner
      • TilePosition
    • Methods
      • Equals(Object)
      • Equals(TileCorner)
      • GetHashCode()
      • OppositeCorner()
      • RotateClockWise()
      • RotateCounterClockWise()
      • ToString()
    • Operators
      • Equality(TileCorner, TileCorner)
      • Inequality(TileCorner, TileCorner)
    Back to top Tycoon Tile documentation