mirror of https://github.com/bgiraudr/Adoranda.git
21 lines
396 B
C
21 lines
396 B
C
|
#pragma once
|
||
|
#include "game.h"
|
||
|
#include "inventory.h"
|
||
|
#include <gint/display.h>
|
||
|
|
||
|
struct Item {
|
||
|
char *name;
|
||
|
int id;
|
||
|
char *description;
|
||
|
bopti_image_t *sprite;
|
||
|
char *action;
|
||
|
};
|
||
|
|
||
|
struct Items {
|
||
|
int nbItems;
|
||
|
struct Item *items[];
|
||
|
};
|
||
|
|
||
|
struct Item *get_item_id(int id);
|
||
|
void select_item(struct Game *game, int pos);
|
||
|
void remove_item_pos(struct Inventory *inventory, int pos);
|