Clash Blueprint Engine API
Preparing search index...
engine/src
Grid
Class Grid
Index
Constructors
constructor
Properties
height
width
Accessors
tile
Count
Methods
contains
Rect
contains
Tile
to
JSON
square
Constructors
constructor
new
Grid
(
config
:
GridConfig
)
:
Grid
Parameters
config
:
GridConfig
Returns
Grid
Properties
Readonly
height
height
:
number
Readonly
width
width
:
number
Accessors
tile
Count
get
tileCount
()
:
number
Returns
number
Methods
contains
Rect
containsRect
(
rect
:
Rect
)
:
boolean
Is a whole footprint rectangle inside the grid?
Parameters
rect
:
Rect
Returns
boolean
contains
Tile
containsTile
(
pos
:
GridVec
)
:
boolean
Parameters
pos
:
GridVec
Returns
boolean
to
JSON
toJSON
()
:
GridConfig
Returns
GridConfig
Static
square
square
(
size
:
number
)
:
Grid
Parameters
size
:
number
Returns
Grid
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
height
width
Accessors
tile
Count
Methods
contains
Rect
contains
Tile
to
JSON
square
Clash Blueprint Engine API
Loading...
Is a whole footprint rectangle inside the grid?