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
Returns
- bool
trueif available; otherwisefalse.
HasFood(int)
Returns whether the provider has at least the specified amount of food.
bool HasFood(int amount)
Parameters
amountintRequired amount.
Returns
- bool
trueif available; otherwisefalse.
HasGold(int)
Returns whether the provider has at least the specified amount of gold.
bool HasGold(int amount)
Parameters
amountintRequired amount.
Returns
- bool
trueif available; otherwisefalse.
HasStone(int)
Returns whether the provider has at least the specified amount of stone.
bool HasStone(int amount)
Parameters
amountintRequired amount.
Returns
- bool
trueif available; otherwisefalse.
HasWood(int)
Returns whether the provider has at least the specified amount of wood.
bool HasWood(int amount)
Parameters
amountintRequired amount.
Returns
- bool
trueif available; otherwisefalse.