dsabp-js
    Preparing search index...

    Enumeration Shape

    The shape names and vertices are taken directly from the game source. The names may not be descriptive, but you don't usually need to refer to them by name. Additionally, the constants have a comment that visually represents the shape with braille ascii art, generated from the vertices.

    The vertices are sorted to prevent them from overlapping.

    Generated using test.drednot.io version: Sat Nov 2 23:16:10 MDT 2024 / 07f2ca2

    This is a class that extends the Enum class.

    Index

    Enumeration Members

    BEVEL_DL: Shape =

    ⣿⣿⣿⣿
    ⠙⢿⣿⣿

    BEVEL_DR: Shape =

    ⣿⣿⣿⣿
    ⣿⣿⡿⠋

    BEVEL_UL: Shape =

    ⢀⣴⣿⣿
    ⣿⣿⣿⣿

    BEVEL_UR: Shape =

    ⣿⣿⣷⣄
    ⣿⣿⣿⣿

    BLOCK: Shape =

    ⣿⣿⣿⣿
    ⣿⣿⣿⣿

    HALF_RAMP_1_D: Shape =

    ⠈⠙⠻⢿
             

    HALF_RAMP_1_DI: Shape =

    ⡿⠟⠋⠁
             

    HALF_RAMP_1_L: Shape =

           ⣰
         ⣰⣿

    HALF_RAMP_1_LI: Shape =

         ⠹⣿
           ⠹

    HALF_RAMP_1_R: Shape =

    ⣿⠏     
    ⠏       

    HALF_RAMP_1_RI: Shape =

    ⣆       
    ⣿⣆     

    HALF_RAMP_1_U: Shape =

             
    ⣷⣦⣄⡀

    HALF_RAMP_1_UI: Shape =

             
    ⢀⣠⣴⣾

    HALF_RAMP_2_D: Shape =

    ⣿⣿⣿⣿
    ⠈⠙⠻⢿

    HALF_RAMP_2_DI: Shape =

    ⣿⣿⣿⣿
    ⡿⠟⠋⠁

    HALF_RAMP_2_L: Shape =

       ⣰⣿⣿
    ⣰⣿⣿⣿

    HALF_RAMP_2_LI: Shape =

    ⠹⣿⣿⣿
       ⠹⣿⣿

    HALF_RAMP_2_R: Shape =

    ⣿⣿⣿⠏
    ⣿⣿⠏   

    HALF_RAMP_2_RI: Shape =

    ⣿⣿⣆   
    ⣿⣿⣿⣆

    HALF_RAMP_2_U: Shape =

    ⣷⣦⣄⡀
    ⣿⣿⣿⣿

    HALF_RAMP_2_UI: Shape =

    ⢀⣠⣴⣾
    ⣿⣿⣿⣿

    HALF_RAMP_3_D: Shape =

             
    ⠈⠙⠻⢿

    HALF_RAMP_3_DI: Shape =

             
    ⡿⠟⠋⠁

    HALF_RAMP_3_L: Shape =

       ⣰     
    ⣰⣿     

    HALF_RAMP_3_LI: Shape =

    ⠹⣿     
       ⠹     

    HALF_RAMP_3_R: Shape =

         ⣿⠏
         ⠏   

    HALF_RAMP_3_RI: Shape =

         ⣆   
         ⣿⣆

    HALF_RAMP_3_U: Shape =

    ⣷⣦⣄⡀
             

    HALF_RAMP_3_UI: Shape =

    ⢀⣠⣴⣾
             

    QUARTER_DL: Shape =

         ⣿⣿
             

    QUARTER_DR: Shape =

    ⣿⣿     
             

    QUARTER_RAMP_DL: Shape =

         ⠙⢿
             

    QUARTER_RAMP_DR: Shape =

    ⡿⠋     
             

    QUARTER_RAMP_UL: Shape =

             
         ⣠⣾

    QUARTER_RAMP_UR: Shape =

             
    ⣷⣄     

    QUARTER_UL: Shape =

             
         ⣿⣿

    QUARTER_UR: Shape =

             
    ⣿⣿     

    RAMP_DL: Shape =

    ⠙⢿⣿⣿
         ⠙⢿

    RAMP_DR: Shape =

    ⣿⣿⡿⠋
    ⡿⠋     

    RAMP_UL: Shape =

         ⢀⣴
    ⢀⣴⣿⣿

    RAMP_UR: Shape =

    ⣷⣄     
    ⣿⣿⣷⣄

    SLAB_D: Shape =

    ⣿⣿⣿⣿
             

    SLAB_L: Shape =

         ⣿⣿
         ⣿⣿

    SLAB_R: Shape =

    ⣿⣿     
    ⣿⣿     

    SLAB_U: Shape =

             
    ⣿⣿⣿⣿

    Constructors

    • Parameters

      • v: number
      • vertices: { x: number; y: number }[]

      Returns Shape

    Properties

    enumName: string

    The name of the constant, i.e. the member name.

    enumValue: number

    The value of the constant.

    vertices: { x: number; y: number }[]
    buildSurfaceShapes: Set<Shape> = ...

    Set of shapes with a flat and full top surface.

    Accessors

    • get isBuildSurface(): boolean

      Checks whether the shape has a flat and full top surface.

      Returns boolean

    Methods

    • Returns string

      "Enum.MEMBER"

    • Returns a constant with the specified name, or undefined if not found. (Case-sensitive)

      Shortcut to using getMap.

      Parameters

      • name: string

      Returns Shape

    • Returns a constant with the specified value, or undefined if not found.

      Shortcut to using getReverseMap and getMap.

      Parameters

      • value: number

      Returns Shape

    • Enum names to constant instances.

      Can be used to get the names and values of all constants in this enum.

      Returns Map<string, Shape>

    • Enum values to names.

      Returns Map<number, string>