Optional dimensions: ICardDimensionsReadonly backStores graphical information about the back face of the card.
Readonly childrenContains child objects that are displayed on top of this card. This will also contain objects from display annotated properties, using the property keys as names.
Readonly cornerCorner radius of the card in centimeters.
If true, don't draw the sides of the card, and use alpha cutoff for the faces.
Readonly frontStores graphical information about the front face of the card, as seen if the card isn't hidden.
Readonly heightHeight of the card in centimeters.
Readonly hiddenStores graphical information about the front face of the card, as seen if the card is hidden.
Optional hiddenOptional display name for this object when hidden.
Optional nameOptional display name for this object.
Readonly shapeShape of the card (rectangle, hexagon, ...).
Optional Readonly svgFor cards using an SVG as a shape.
Readonly thicknessThickness of the card in centimeters.
Readonly widthWidth of the card in centimeters.
Builds a view of this object from the perspective of a player.
Information about where the object is in the scene, and who's viewing it.
Renders the object for embedding in text.
Information about the visibility of the object, and who's viewing it.
Static getGet the dimensions of a card class, as specified by rectangleCard / hexagonCard decorator.
Type of card to get the dimensions of.
Width, height, and thickness of the card in centimeters.
Generated using TypeDoc
A game object representing a rectangular playing card. Can have arbitrary front and back images, dimensions (including thickness), and rounded corners. Specify dimensions using a rectangleCard or hexagonCard decorator on your custom class.