Table of Contents

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

Dictionary<string, int>

Food

Food cost.

public int Food { get; set; }

Property Value

int

Gold

Gold cost.

public int Gold { get; set; }

Property Value

int

Stone

Stone cost.

public int Stone { get; set; }

Property Value

int

Wood

Wood cost.

public int Wood { get; set; }

Property Value

int

Methods

CanAfford(IResourceProvider)

Checks if the player can afford this cost.

public bool CanAfford(IResourceProvider resources)

Parameters

resources IResourceProvider

Returns

bool