Skip to content

Instantly share code, notes, and snippets.

@mloc
Created October 5, 2017 13:39
Show Gist options
  • Save mloc/d31686803b4dcd526a5d95bdbaf1ceb6 to your computer and use it in GitHub Desktop.
Save mloc/d31686803b4dcd526a5d95bdbaf1ceb6 to your computer and use it in GitHub Desktop.
#define CONFIG_ITEM(set_id, item_type, item_id, default, desc) \
/datum/config_set/set_id { \
var/item_id; \
} \
/datum/config_builder/pop_items(list/l) { \
. = ..(); \
.[#set_id] += list(list(item_type, #item_id, default, desc)); \
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment