Skip to content

BoardPlacementSlot

Divided by Zer0 edited this page Jul 11, 2021 · 3 revisions

BoardPlacementSlot

Extends: Control

Description

Represents a spot on the placement grid that is used to organize cards on the board.

Property Descriptions

occupying_card

var occupying_card

If a card is placed on this spot, this variable will hold a reference to the Card object and no other card can be placed in this slot

owner_grid

var owner_grid

Stores a reference to the owning BoardPlacementGrid object

Method Descriptions

is_highlighted

func is_highlighted() -> bool

Returns true if this slot is highlighted, else false

set_highlight

func set_highlight(requested: bool, hoverColour) -> void

Changes card highlight colour.

get_grid_name

func get_grid_name() -> String

Returns the name of the grid which is hosting this slot. This is typically used with CFConst.BoardDropPlacement.SPECIFIC_GRID

Clone this wiki locally