idk
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
# Sources
|
||||
target_sources(${DUSK_LIBRARY_TARGET_NAME}
|
||||
PUBLIC
|
||||
item.c
|
||||
inventory.c
|
||||
backpack.c
|
||||
)
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "item.h"
|
||||
#include "item/item.h"
|
||||
|
||||
#define ITEM_STACK_QUANTITY_MAX UINT8_MAX
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "item.h"
|
||||
|
||||
const item_t ITEMS[] = {
|
||||
[ITEM_ID_NULL] = {
|
||||
.type = ITEM_TYPE_NULL
|
||||
},
|
||||
|
||||
// Potion
|
||||
[ITEM_ID_POTION] = {
|
||||
.type = ITEM_TYPE_MEDICINE
|
||||
},
|
||||
|
||||
// Potato
|
||||
[ITEM_ID_POTATO] = {
|
||||
.type = ITEM_TYPE_FOOD
|
||||
},
|
||||
|
||||
// Apple
|
||||
[ITEM_ID_APPLE] = {
|
||||
.type = ITEM_TYPE_FOOD
|
||||
}
|
||||
};
|
||||
@@ -1,24 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef ITEM_CSV_GENERATED
|
||||
#error "Item CSV has not been generated. Ensure dusk_item_csv is run in CMake."
|
||||
#endif
|
||||
|
||||
#include "item/itemtype.h"
|
||||
#include "item/itemid.h"
|
||||
#include "item/itemname.h"
|
||||
|
||||
// test.
|
||||
typedef struct {
|
||||
const char_t *name;
|
||||
const itemtype_t type;
|
||||
} item_t;
|
||||
|
||||
extern const item_t ITEMS[];
|
||||
Reference in New Issue
Block a user