Class ResourceCost
- Namespace
- MoonBark.GridPlacement.Core.Data.Placement
- Assembly
- MoonBark.GridPlacement.Core.dll
Resource cost data for building placement.
public class ResourceCost
- Inheritance
-
ResourceCost
- Inherited Members
Properties
CustomResources
Custom resource costs. Key: Resource name, Value: Amount
public Dictionary<string, int> CustomResources { get; set; }
Property Value
Food
Food cost.
public int Food { get; set; }
Property Value
Gold
Gold cost.
public int Gold { get; set; }
Property Value
Stone
Stone cost.
public int Stone { get; set; }
Property Value
Wood
Wood cost.
public int Wood { get; set; }
Property Value
Methods
CanAfford(IResourceProvider)
Checks if the player can afford this cost.
public bool CanAfford(IResourceProvider resources)
Parameters
resourcesIResourceProvider