prog
Some checks failed
Build Dusk / run-tests (push) Failing after 1m58s
Build Dusk / build-linux (push) Failing after 1m26s
Build Dusk / build-psp (push) Failing after 1m41s

This commit is contained in:
2026-01-26 18:27:12 -06:00
parent 9544d15a18
commit d1b03c4cb3
7 changed files with 126 additions and 104 deletions

View File

@@ -1,37 +1 @@
# Copyright (c) 2026 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
function(dusk_item_csv CSV_FILE)
dusk_csv_to_enum(
${CSV_FILE}
item/itemtype.h
itemtype_t
ITEM_TYPE_
type
)
dusk_csv_to_enum(
${CSV_FILE}
item/itemid.h
itemid_t
ITEM_ID_
id
)
dusk_csv_to_array(
${CSV_FILE}
item/itemname.h
ITEM_NAMES
item/itemid.h
ITEM_ID_
id
id
)
target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME}
PUBLIC
ITEM_CSV_GENERATED=1
)
endfunction()
add_subdirectory(csv)