ResourceCost

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.

Declaration

1
public class ResourceCost

Summary

Resource cost data for building placement.

Metadata

Namespace: GridPlacement.Core.Data.Placement

Source File: cs/Core/Data/Placement/PlacementData.cs

Assembly: GridPlacement.Core

Type: class

Properties

Gold

1
public int Gold { get; set; }

Gold cost.


Wood

1
public int Wood { get; set; }

Wood cost.


Stone

1
public int Stone { get; set; }

Stone cost.


Food

1
public int Food { get; set; }

Food cost.


CustomResources

1
public Dictionary<string, int> CustomResources { get; set; }

Custom resource costs. Key: Resource name, Value: Amount


Methods

CanAfford

1
public bool CanAfford(IResourceProvider resources)

Checks if the player can afford this cost.