eco2d/code/game/src/items_list.c

23 lines
407 B
C
Raw Normal View History

2021-08-30 15:50:05 +00:00
#include "items.h"
2021-11-02 11:49:03 +00:00
#define ITEM_BLOCK(asset, qty, build_asset)\
{\
.kind = asset,\
.usage = UKIND_PLACE,\
.max_quantity = qty,\
.place = {\
.kind = build_asset,\
}\
}
#define ITEM_SELF(asset, qty) ITEM_BLOCK(asset, qty, asset)
2021-08-30 15:50:05 +00:00
static item_desc items[] = {
{
2021-11-02 10:48:32 +00:00
.kind = 0,
.max_quantity = 0,
},
2021-11-02 11:49:03 +00:00
ITEM_BLOCK(ASSET_DEMO_ICEMAKER, 64, ASSET_WATER),
ITEM_SELF(ASSET_FENCE, 64),
};