ResourceCost
ResourceCost
Resource cost data for building placement.
Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Core/Data/Placement/BuildingData.cs
Namespace: GridBuilding.Core.Data.Placement
Kind: class
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
Properties
Gold
Gold cost.
Wood
Wood cost.
Stone
Stone cost.
Food
Food cost.
CustomResources
Custom resource costs. Key: Resource name, Value: Amount
Methods
CanAfford
Checks if the player can afford this cost.
Returns: bool
Parameters:
IResourceProvider resources