# void Wagon::SetFood(int)

[Family: Wagon](/imperivm/en/CKS/familias/wagon/)

## Exact signature

```text
void Wagon::SetFood(int)
```

## Description

Selects the carried resource type and forwards the supplied amount to the wagon amount-update helper.

## Parameters and return type

**Return type:** `void`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `int` |

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-f71774b33a9068.md)
- [JSON](/imperivm/CKS/api/entries/api-f71774b33a9068?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
