AdditionalPlacementTiles
A classe AdditionalPlacementTiles é usada para definir tiles extra para a construção ao colocar no menu de construção.
Construtor
def __init__(
self,
*,
TileArea: Rectangle,
OnlyNeedsToBeNextToWater: bool = False,
)
Parâmetros
| Name | Type | Description |
|---|---|---|
TileArea |
(Rectangle) |
Area do tile |
OnlyNeedsToBeNextToWater |
(bool, Optional) |
Se apenas precisa estar perto de agua |
Exemplo
from StardewValley.Data import AdditionalPlacementTiles
from StardewValley.XNA import Rectangle
# Dentro de uma classe BuildingsData, quando for definir o valor da variavel AdditionalPlacementTiles voce define usando a classe
AdditionalPlacementTiles(
TileArea=Rectangle(
X= 2,
Y= 6,
Width= 3,
Height= 2
),
OnlyNeedsToBeNextToWater=True,
)