Table of Contents

Interface IResourceProvider

Namespace
MoonBark.GridPlacement.Core.Data.Placement
Assembly
MoonBark.GridPlacement.Core.dll

Interface for providing resource information.

public interface IResourceProvider

Methods

HasCustomResource(string, int)

Returns whether the provider has at least the specified amount of a custom resource.

bool HasCustomResource(string resourceName, int amount)

Parameters

resourceName string

The custom resource name.

amount int

Required amount.

Returns

bool

true if available; otherwise false.

HasFood(int)

Returns whether the provider has at least the specified amount of food.

bool HasFood(int amount)

Parameters

amount int

Required amount.

Returns

bool

true if available; otherwise false.

HasGold(int)

Returns whether the provider has at least the specified amount of gold.

bool HasGold(int amount)

Parameters

amount int

Required amount.

Returns

bool

true if available; otherwise false.

HasStone(int)

Returns whether the provider has at least the specified amount of stone.

bool HasStone(int amount)

Parameters

amount int

Required amount.

Returns

bool

true if available; otherwise false.

HasWood(int)

Returns whether the provider has at least the specified amount of wood.

bool HasWood(int amount)

Parameters

amount int

Required amount.

Returns

bool

true if available; otherwise false.