aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 0c779ddcc..1be764121 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -285,6 +285,26 @@ struct ContentFeatures
class NodeResolver;
class INodeDefManager;
+struct NodeListInfo {
+ NodeListInfo(u32 len)
+ {
+ length = len;
+ all_required = false;
+ c_fallback = CONTENT_IGNORE;
+ }
+
+ NodeListInfo(u32 len, content_t fallback)
+ {
+ length = len;
+ all_required = true;
+ c_fallback = fallback;
+ }
+
+ u32 length;
+ bool all_required;
+ content_t c_fallback;
+};
+
struct NodeResolveInfo {
NodeResolveInfo(NodeResolver *nr)
{
@@ -292,7 +312,7 @@ struct NodeResolveInfo {
}
std::list<std::string> nodenames;
- std::list<size_t> nodename_sizes;
+ std::list<NodeListInfo> nodelistinfo;
NodeResolver *resolver;
};