IResourceProvider

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 interface IResourceProvider

Summary

Interface for providing resource information.

Metadata

Namespace: GridPlacement.Core.Data.Placement

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

Assembly: GridPlacement.Core

Type: interface

Methods

HasGold

1
bool HasGold(int amount)

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

Parameters

NameDescription
amountRequired amount.

Returns

true if available; otherwise false.


HasWood

1
bool HasWood(int amount)

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

Parameters

NameDescription
amountRequired amount.

Returns

true if available; otherwise false.


HasStone

1
bool HasStone(int amount)

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

Parameters

NameDescription
amountRequired amount.

Returns

true if available; otherwise false.


HasFood

1
bool HasFood(int amount)

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

Parameters

NameDescription
amountRequired amount.

Returns

true if available; otherwise false.


HasCustomResource

1
2
3
4
bool HasCustomResource(
    string resourceName,
    int amount
)

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

Parameters

NameDescription
resourceNameThe custom resource name.
amountRequired amount.

Returns

true if available; otherwise false.