summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice <maurice.henke@protonmail.com>2021-07-13 12:07:24 +0200
committerMaurice <maurice.henke@protonmail.com>2021-07-13 12:07:24 +0200
commit152d38271ee9c72bdd6b665c4cdf886194572901 (patch)
tree3da2e5c2026ad9b655e3b6d8d31b71691fc3d803
parent8407ffcede5edd182fdf699744f1ae8f7bbe85c6 (diff)
Add item function ptrs
-rw-r--r--include/tp/d_item.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/tp/d_item.h b/include/tp/d_item.h
index b236ecc..457486f 100644
--- a/include/tp/d_item.h
+++ b/include/tp/d_item.h
@@ -11,6 +11,9 @@
namespace libtp::tp::d_item
{
+ typedef void ( *ItemFunc )();
+ typedef int32_t ( *ItemGetCheckFunc )();
+
extern "C"
{
/**
@@ -31,10 +34,8 @@ namespace libtp::tp::d_item
*/
int32_t execItemGet( uint8_t item );
- /**
- * @brief Sets the flag for the heart container being recieved
- */
- void item_func_UTUWA_HEART();
+ extern ItemFunc item_func_ptr[0x100];
+ extern ItemGetCheckFunc item_getcheck_func_ptr[0x100];
}
} // namespace libtp::tp::d_item
#endif \ No newline at end of file