Search Results for

    Show / Hide Table of Contents

    Class SurfaceLocationExtensions

    Inheritance
    System.Object
    SurfaceLocationExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Immersive
    Assembly: cs.temp.dll.dll
    Syntax
    public static class SurfaceLocationExtensions

    Methods

    ForEach(Action<SurfaceLocation>)

    Declaration
    public static void ForEach(Action<SurfaceLocation> action)
    Parameters
    Type Name Description
    Action<SurfaceLocation> action

    ForEach(Predicate<SurfaceLocation>, Action<SurfaceLocation>)

    Declaration
    public static void ForEach(Predicate<SurfaceLocation> predicate, Action<SurfaceLocation> correctAction)
    Parameters
    Type Name Description
    Predicate<SurfaceLocation> predicate
    Action<SurfaceLocation> correctAction

    ForEachSurface(SurfaceLocation, Action<SurfaceLocation>)

    Declaration
    public static void ForEachSurface(this SurfaceLocation layout, Action<SurfaceLocation> action)
    Parameters
    Type Name Description
    SurfaceLocation layout
    Action<SurfaceLocation> action

    GetIndex(SurfaceLocation)

    Declaration
    public static int GetIndex(this SurfaceLocation location)
    Parameters
    Type Name Description
    SurfaceLocation location
    Returns
    Type Description
    System.Int32

    GetLeftmostSurfaceLocation(SurfaceLocation)

    Declaration
    public static SurfaceLocation GetLeftmostSurfaceLocation(this SurfaceLocation layout)
    Parameters
    Type Name Description
    SurfaceLocation layout
    Returns
    Type Description
    SurfaceLocation

    GetSurfaceIndex(SurfaceLocation, SurfaceLocation)

    Gets the index of a specific SurfaceLocation in a layout.

    Declaration
    public static int GetSurfaceIndex(this SurfaceLocation layout, SurfaceLocation location)
    Parameters
    Type Name Description
    SurfaceLocation layout

    The layout of the room.

    SurfaceLocation location

    The SurfaceLocation you want to find. Cannot be a compound flag.

    Returns
    Type Description
    System.Int32

    The index of the SurfaceLocation. -1 if not found.

    GetWallCount(SurfaceLocation)

    Declaration
    public static int GetWallCount(this SurfaceLocation layout)
    Parameters
    Type Name Description
    SurfaceLocation layout
    Returns
    Type Description
    System.Int32

    HasAllWalls(SurfaceLocation)

    Declaration
    public static bool HasAllWalls(this SurfaceLocation layout)
    Parameters
    Type Name Description
    SurfaceLocation layout
    Returns
    Type Description
    System.Boolean

    IsSingleSurface(SurfaceLocation)

    Test to see if a SurfaceLocation represents a single SurfaceLocation (e.g. Left, or Centre) rather than multiple (e.g. Left and Centre).

    Declaration
    public static bool IsSingleSurface(this SurfaceLocation location)
    Parameters
    Type Name Description
    SurfaceLocation location

    A SurfaceLocation item.

    Returns
    Type Description
    System.Boolean

    True if location represents a single location, false otherwise.

    IsWall(SurfaceLocation)

    Declaration
    public static bool IsWall(this SurfaceLocation location)
    Parameters
    Type Name Description
    SurfaceLocation location
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top Immersive Interactive