test content events names cache

This commit is contained in:
MihailRis 2026-01-29 20:30:38 +03:00
parent bf7732f68a
commit 0012419651
5 changed files with 34 additions and 12 deletions

View file

@ -15,6 +15,9 @@ struct ItemFuncsSet {
bool on_block_break_by : 1;
};
struct ItemFuncNamesCache {
};
enum class ItemIconType {
NONE, // invisible (core:empty) must not be rendered
SPRITE, // textured quad: icon is `atlas_name:texture_name`
@ -75,6 +78,8 @@ struct ItemDef {
bool emissive = false;
std::set<int> tags;
ItemFuncNamesCache eventNames;
} rt {};
ItemDef(const std::string& name);