idk
Some checks failed
Build Dusk / run-tests (push) Successful in 1m57s
Build Dusk / build-linux (push) Successful in 2m9s
Build Dusk / build-psp (push) Failing after 1m39s

This commit is contained in:
2026-01-26 22:54:05 -06:00
parent d1b03c4cb3
commit 81b08b2eba
19 changed files with 179 additions and 276 deletions

View File

@@ -6,7 +6,6 @@
# Sources
target_sources(${DUSK_LIBRARY_TARGET_NAME}
PUBLIC
item.c
inventory.c
backpack.c
)

View File

@@ -6,7 +6,7 @@
*/
#pragma once
#include "item.h"
#include "item/item.h"
#define ITEM_STACK_QUANTITY_MAX UINT8_MAX

View File

@@ -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
}
};

View File

@@ -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[];